Title: 3.9 HTML editor load script issue
Last modified: August 21, 2016

---

# 3.9 HTML editor load script issue

 *  [idowning](https://wordpress.org/support/users/idowning/)
 * (@idowning)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/39-html-editor-load-script-issue/)
 * I’ve created a repeatable field group and one of the items uses the “use HTML
   editor” for the text field. But when that options is selected I get a JS error
   of a syntax error of [http://screencast.com/t/CyxvBlLtV](http://screencast.com/t/CyxvBlLtV)
   
   When I de-select the option for the HTML editor the issue goes away, and the 
   repeatable field shows up just fine.
 * My guess, is with the changes to the core and TinyMCE in 3.9, there is a conflict
   of some kind.
 * [https://wordpress.org/plugins/simple-fields/](https://wordpress.org/plugins/simple-fields/)

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

 *  Plugin Contributor [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * (@eskapism)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/39-html-editor-load-script-issue/#post-4825220)
 * Yes that’s the problem. I hope to be able to fix this soon.
 *  [jaymecolab](https://wordpress.org/support/users/jaymecolab/)
 * (@jaymecolab)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/39-html-editor-load-script-issue/#post-4825235)
 * Just to report; we are running into this issue as well, did what idowning mentioned
   as a stop-gap
 *  Thread Starter [idowning](https://wordpress.org/support/users/idowning/)
 * (@idowning)
 * [12 years ago](https://wordpress.org/support/topic/39-html-editor-load-script-issue/#post-4825306)
 * Thanks for the update Pär Thernström. Let me know if you need me to test something
   or if I can pitch in on some area of the code.
 * Thanks.
 *  Plugin Contributor [Angry Creative](https://wordpress.org/support/users/angrycreative/)
 * (@angrycreative)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/39-html-editor-load-script-issue/#post-4825397)
 * Can confirm that this is a problem for us, too. [@samface](https://wordpress.org/support/users/samface/)
   can fix it, perhaps?
 * Note: Why would the wp core team update to tinymce 4.x and still keep the iframe?
   the amount of senses it does not make.
 *  Plugin Contributor [Sammy Nordström](https://wordpress.org/support/users/samface/)
 * (@samface)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/39-html-editor-load-script-issue/#post-4825399)
 * It’s an issue with TinyMCE, with WP 3.9 comes TinyMCE 4. The visual editor needs
   to be instantiated a bit differently. I fixed it in another project like this:
 *     ```
       // The old way of adding TinyMCE to a textarea:
       // tinyMCE.execCommand('mceAddControl', false, id); 
   
       // The new way:
       ed = new tinyMCE.Editor(id, tinyMCE.settings, tinyMCE.EditorManager);
       ed.render();
       ```
   
 * Not sure of how applicable it is to Simple Fields (the sources have been refactored
   several times over since I worked on it), but hopefully it is of some help. 🙂
 *  Plugin Contributor [Sammy Nordström](https://wordpress.org/support/users/samface/)
 * (@samface)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/39-html-editor-load-script-issue/#post-4825403)
 * We’re happy to report that the issue we had has now been resolved and that it
   was not caused by the Simple Fields plugin at all. In other words, disregard 
   our bugreport. 🙂
 * Sorry if we sent you on a wild goose chase.
 *  Plugin Contributor [Pär Thernström](https://wordpress.org/support/users/eskapism/)
 * (@eskapism)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/39-html-editor-load-script-issue/#post-4825404)
 * Thanks for the update [@samface](https://wordpress.org/support/users/samface/)!
   Good news for me in this case 🙂
 *  [mamouneyya](https://wordpress.org/support/users/mamouneyya/)
 * (@mamouneyya)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/39-html-editor-load-script-issue/#post-4825410)
 * This could be a better approach:
    `tinymce.EditorManager.execCommand('mceAddEditor',
   false, id);`

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

The topic ‘3.9 HTML editor load script issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-fields_fafafa.svg)
 * [Simple Fields](https://wordpress.org/plugins/simple-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-fields/reviews/)

 * 8 replies
 * 6 participants
 * Last reply from: [mamouneyya](https://wordpress.org/support/users/mamouneyya/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/39-html-editor-load-script-issue/#post-4825410)
 * Status: not resolved