• nigel1

    (@nigel1)


    I want to incorporate the Aviary editor into WordPress posts. I will use an “edit” button to allow visitors to pull up the editor into a lightbox, edit it and save it. Aviary has provided code to edit and save the image in a lightbox. I need to know how to dynamically pass the ID and URL of the image in an input tag.

    By the way, I am aware of the Aviary Editor plugin. However, this is used directly in the media library of the admin area. I want to do this for the image in a post. I know this is basic, but I am not a programmer, so your patience and feedback are greatly appreciated.

    Below is the static input code from Aviary that I need help with (last line):

    <!-- Add an edit button, passing the HTML id of the image and the public URL of the image -->
    <p><input type='image' src='https://images.aviary.com/images/edit-photo.png' value='Edit photo' onclick="return launchEditor('imageid', 'imageurl');" /></p>

    Thanks so much. I very much appreciate your help!

  • The topic ‘How to pass image ID and URL in input tag in post’ is closed to new replies.