Load tinyMCE resources into a theme template without wp_editor()
I’m trying to load the tinyMCE onto a template page, I know I can use wp_editor, but I’d like to do this only if the page owner clicks an ‘edit’ button.
If I use
tinyMCE.execCommand('mceAddControl', false, 'pageDescription');I get an error: “tinyMCE is not defined”.
I found a hack, if I load wp_editor into a hidden div the above command works perfectly. I’d just like to be able to do so without such a hack.
Is there a way to load all the tinyMCE scripts easily into a theme so that I can load a tinyMCE editor dynamically?
- The topic ‘Load tinyMCE resources into a theme template without wp_editor()’ is closed to new replies.