Title: tinymce get content error
Last modified: September 1, 2016

---

# tinymce get content error

 *  [xanderkrosh](https://wordpress.org/support/users/xanderkrosh/)
 * (@xanderkrosh)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/tinymce-get-content-error/)
 * Hi, have theme (no updating) now have problem with theme page builder, i get 
   error Cannot read property ‘getContent’ of null.
 * Part of Code of theme js is:
 *     ```
       else {
       var content = tinymce.get(id).getContent();
       					window.tinyMCE.execCommand('mceRemoveEditor', true, id);
       					window.tinyMCE.execCommand('mceAddEditor', true, id);
       					tinymce.get(id).setContent(content);
       					wpActiveEditor = id;
       				}
       ```
   
 * id – is ID of textarea…is it fixable? Of course i understand, that i need to 
   update – but i can’t…
 * [https://wordpress.org/plugins/tinymce-advanced/](https://wordpress.org/plugins/tinymce-advanced/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * (@azaozz)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/tinymce-get-content-error/#post-8403551)
 * This code removes and then adds the an editor instance with the same ID. These
   are both very “heavy” operations and are now handled asynchronous in TinyMCE.
   Thinking this is the problem with that builder plugin. Best to get a fix from
   the authors.
 * BTW this doesn’t have anything to do with TinyMCE Advanced 🙂

Viewing 1 replies (of 1 total)

The topic ‘tinymce get content error’ 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/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [tinymce](https://wordpress.org/support/topic-tag/tinymce/)

 * 1 reply
 * 2 participants
 * Last reply from: [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/tinymce-get-content-error/#post-8403551)
 * Status: not resolved