I was wondering if there is any direct hook to inject some javascript into tinymce iframe?
Leave a Reply
You must be logged in to post a comment.
I was wondering if there is any direct hook to inject some javascript into tinymce iframe?
You must be logged in to post a comment.
WordPress injects its own external script files in the TinyMCE editor
iframe
, see for example thewp-includes/js/tinymce/plugins/wpembed/plugin.js
file:The
plugin.js
file is loaded in TinyMCE using thetiny_mce_plugins
filter.Not possible, Tinymce uses this javascript to create iframe, so you’ve to edit the javascript to load additional javascript file into iframe.
Thats why there will not be any hook to inject javascript into iframe.