Support » Plugin: TinyMCE Advanced » tinyMCE.activeEditor.getContent(content) does not work with TinyMCE Advanced

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ah found it, this plugin puts content inside
    jQuery(“#content”).html();

    Plugin Author Andrew Ozz

    (@azaozz)

    WordPress Dev

    The activeEditor is null if TinyMCE is not initialized yet. It is also hidden ed.isHidden() when the user switches to the HTML editor. jQuery(“#content”).html(); or jQuery(“#content”).val(); would get the content from the textarea, the content in the iframe may be newer/changed.

    If you’re trying to get the content from either MCE or the HTML editor, will need to check if MCE is hidden, if yes -> get the content from the textarea, if no -> run `ed.save()’ to get the content http://www.tinymce.com/wiki.php/API3:method.tinymce.Editor.save

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘tinyMCE.activeEditor.getContent(content) does not work with TinyMCE Advanced’ is closed to new replies.