Title: Javascript error breaks TinyMCE editor
Last modified: July 11, 2017

---

# Javascript error breaks TinyMCE editor

 *  [Tribulant Software](https://wordpress.org/support/users/contrid/)
 * (@contrid)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-breaks-tinymce-editor/)
 * Your plugin generates a Javascript error:
 * `Can't find variable: addFascToEditor`
 * The TinyMCE button is added everywhere but the script is only loaded in certain
   areas.
 * Since other plugins or the theme may want to use wp_tiny_mce() in other areas,
   your plugin generates a Javascript error outside the post/page editing screens.
 * > ​It adds it’s TinyMCE button everywhere on the editor but it only loads it’s
   > scripts on post/page editing screens. Since other plugins or the theme may 
   > want to use the editor in other places using wp_tiny_mce() function, it should
   > either load it’s scripts with TinyMCE at all times or only add the button to
   > the editor where it’s scripts are loaded.

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

 *  Plugin Author [Ross Morsali](https://wordpress.org/support/users/designsandcode/)
 * (@designsandcode)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-breaks-tinymce-editor/#post-9328225)
 * Thanks for this, will look to fix this week.
 *  Thread Starter [Tribulant Software](https://wordpress.org/support/users/contrid/)
 * (@contrid)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-breaks-tinymce-editor/#post-9328575)
 * [@designsandcode](https://wordpress.org/support/users/designsandcode/)
 * Great, thanks
 *  Plugin Author [Ross Morsali](https://wordpress.org/support/users/designsandcode/)
 * (@designsandcode)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/javascript-error-breaks-tinymce-editor/#post-9351045)
 * Hi again, sorry for the delay – I just released 2.1.1 – can you let me know if
   this fixes things for you?

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

The topic ‘Javascript error breaks TinyMCE editor’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/forget-about-shortcode-buttons_ffffff.
   svg)
 * [Forget About Shortcode Buttons](https://wordpress.org/plugins/forget-about-shortcode-buttons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forget-about-shortcode-buttons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forget-about-shortcode-buttons/)
 * [Active Topics](https://wordpress.org/support/plugin/forget-about-shortcode-buttons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forget-about-shortcode-buttons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forget-about-shortcode-buttons/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ross Morsali](https://wordpress.org/support/users/designsandcode/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/javascript-error-breaks-tinymce-editor/#post-9351045)
 * Status: not resolved