WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. rpophessagr
    Member
    Posted 1 year 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?

    Thanks.

  2. yannou974
    Member
    Posted 1 year 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