I am successfully using the insertHTML webskin with TinyMCE, however, to associate objects via aObjectIDs for the TinyMCE to grab, I need to populate the aObjectsIDs array (associated media) then save the entry, go back into the entry and then I am able to “pick from my list”.
Is there an ajax-y way to associate a file or image with an entry, and then go right to the TinyMCE body and pop it in?
The TinyMCE plugin that handles this can be found in core in the
which interacts with /webtop/facade/tinyMCE.cfc. A similar issue was fixed
in the image_farcry TinyMCE plugin, which was to include the current value
of the array (retrieved from the hidden field) and pass that into the ajax
request. The fix for this would be the same.
TinyMCE caches the plugin JS fairly aggressively and it’s hard to refresh since it’s in an iframe. The easiest way around that would be to open Developer Tools in Chrome, go to the Network tab, and check “Disable cache”;
The browser cache will be disabled while the Developer Tools are open so a simple refresh should then do the trick.