Load tinyMCE resources into a theme template without wp_editor() (2 posts)

  1. rpophessagr
    Posted 3 years ago #

    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?


  2. yannou974
    Posted 3 years ago #

    hey did you find a way to do it? I'm stuck also

Topic Closed

This topic has been closed to new replies.

About this Topic