我有一个奇怪的问题。我正在将内容动态填充到Wordpress的tinyMCE编辑器中。此内容的一部分是占位符图像,用户可以替换它。问题是,当我点击“铅笔”图标进行编辑时,我不会像其他任何图像那样被赋予“替换”按钮。
这就是我所看到的:
这正是我所期望的,适用于从媒体库导入的图像:
Notice, the replace button is present in the second example. I guess because the image is hard-linked and wordpress has no way of knowing if the image exists in the media library. How can I dynamically import an image so this functionality is present?