Title: tinyMCE.activeEditor.getContent(content) does not work with TinyMCE Advanced
Last modified: August 20, 2016

---

# tinyMCE.activeEditor.getContent(content) does not work with TinyMCE Advanced

 *  [giorgio79](https://wordpress.org/support/users/giorgio79/)
 * (@giorgio79)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/tinymceactiveeditorgetcontentcontent-does-not-work-with-tinymce-advanced/)
 * Hello,
    Fellow dev here. With the plain WP installation I am able to retrieve
   the post content with this tinyMCE.activeEditor.getContent(content), with TinyMCE
   Advanced activeEditor is set to null, any tips why, and how I could get the content
   with jquery inside the post?
 * Cheers,
    Gyuri
 * [http://wordpress.org/extend/plugins/tinymce-advanced/](http://wordpress.org/extend/plugins/tinymce-advanced/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [giorgio79](https://wordpress.org/support/users/giorgio79/)
 * (@giorgio79)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/tinymceactiveeditorgetcontentcontent-does-not-work-with-tinymce-advanced/#post-2411909)
 * Ah found it, this plugin puts content inside
    jQuery(“#content”).html();
 *  Plugin Author [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * (@azaozz)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/tinymceactiveeditorgetcontentcontent-does-not-work-with-tinymce-advanced/#post-2412160)
 * 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](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.

 * ![](https://ps.w.org/tinymce-advanced/assets/icon-256x256.png?rev=971511)
 * [Advanced Editor Tools](https://wordpress.org/plugins/tinymce-advanced/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tinymce-advanced/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tinymce-advanced/)
 * [Active Topics](https://wordpress.org/support/plugin/tinymce-advanced/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tinymce-advanced/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tinymce-advanced/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/tinymceactiveeditorgetcontentcontent-does-not-work-with-tinymce-advanced/#post-2412160)
 * Status: not resolved