我想将 Aviary 编辑器合并到 WordPress 帖子中,以便人们可以单击帖子中图像的编辑按钮,对其进行编辑并保存。Aviary 提供了最后两个的代码,但我不知道如何在编辑按钮的输入标记中传递帖子中图像的 HTML ID 和 URL。我知道这是基本的,但我不是程序员,所以我非常感谢您的耐心和反馈。谢谢。
这是 Aviary 提供的输入静态代码:
<!-- Add an edit button, passing the HTML id of the image and the public URL of the image --><p>
<input type='image' src='http://images.aviary.com/images/edit-photo.png' value='Edit photo'
onclick="return launchEditor('imageid', 'url');" /></p>
我需要知道如何为代码的最后一行传递 ID 和 URL。非常感谢您提供的任何反馈。