编辑图像/图像详细信息 - 缺少替换按钮

I have a strange problem. I am dynamically populating content into Wordpress' tinyMCE editor. Part of this content is a placeholder image, that the user can then replace. The issue is when I click the 'pencil' icon to edit, I am not given the "Replace" button like I would any other images.

This is what I see: http://imgur.com/Bjoencj

This is what I expect, and works on images imported from the media library: http://imgur.com/fra3PfX

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?

Are you inserting the placeholder image with the setContent function?

http://www.tinymce.com/wiki.php/API3:method.tinymce.Editor.setContent

Perhaps you can try adding the placeholder image to your media library.