Title: Load Tinymce from WP
Last modified: March 4, 2022

---

# Load Tinymce from WP

 *  Resolved [oganianarman](https://wordpress.org/support/users/oganianarman/)
 * (@oganianarman)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/load-tinymce-from-wp/)
 * Hey I am also developer of WP. You are loading your own tinymce from cdn. What
   if a theme/plugin is also using tinymce of WP on the same page? Tinymce will 
   not work.It is the same if I load my own jQuery version without noConflict(),
   but what to do with Tinymce which doesn’t have anything like “noConflict”,that
   is why You should load it from WP,otherwise you will break others plugins/themes.

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

 *  Plugin Author [MembershipWorks](https://wordpress.org/support/users/sourcefound/)
 * (@sourcefound)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/load-tinymce-from-wp/#post-15426223)
 * Hello oganianarman,
 * MembershipWorks only loads tinymce from our CDN only if both of the following
   conditions are satisfied:
 * a) No tinymce has been loaded, OR the tinymce version is <4 (which is very old
   and incompatible with our code)
 * AND
 * b) The page contains a MembershipWorks form where a rich text editor is required
   to generate the form. Note that MW forms are supposed to take up the page content(
   they are not widgets), so there should not be other forms from other plugins 
   on the same page.
 * Therefore there is no conflict with other plugins that use tinymce – our system
   will only load tinymce when necessary and only on pages where the main page content
   is a MW form.
 *  Thread Starter [oganianarman](https://wordpress.org/support/users/oganianarman/)
 * (@oganianarman)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/load-tinymce-from-wp/#post-15426597)
 * Hey again,
 * a) WP tinymce is using quicktags, filemanager, plugins loading(for others plugins
   e.g shortcodes),tinymce theme styling and etc, all of that you are rewritting,
   that is why it isn’t the same
 * b) Maybe a plugin/theme also is using tinymce in the SAME page with your rich
   text editor.
 * We should use the SAME tinymce(because using 2 tinymces will give conflict nobody
   can guarntee every function of tinymce will work),but of course you should change
   it and load it from WP to make your plugin compatibility with others themes/plugins.`
 *  Plugin Author [MembershipWorks](https://wordpress.org/support/users/sourcefound/)
 * (@sourcefound)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/load-tinymce-from-wp/#post-15426857)
 * Hello oganianarman,
 * If a plugin/theme is also using tinymce on the SAME page, MembershipWorks only
   re-loads tinymce if the version used by the plugin/theme is too old (ie. less
   than version 4, which was released in 2013) so it is a version not supported 
   by our system. Otherwise MembershipWorks uses the tinymce that is already loaded
   by the other plugin/theme.
 *  Thread Starter [oganianarman](https://wordpress.org/support/users/oganianarman/)
 * (@oganianarman)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/load-tinymce-from-wp/#post-15427002)
 * I think you don’t understand the issue, WP also is using tinymce>4. Let’s me 
   try again explain.
 * Where are you loading all these files [https://prnt.sc/RHybVV64Nzc4](https://prnt.sc/RHybVV64Nzc4)?
 * I am using this( [https://developer.wordpress.org/reference/functions/wp_editor/](https://developer.wordpress.org/reference/functions/wp_editor/))
   WP standart function to load tinymce(which you should use too).
 * You are overwriting WP tinymce which is defined here [https://prnt.sc/sedcbLxo9kbO](https://prnt.sc/sedcbLxo9kbO)
   and all these files and maybe more [https://prnt.sc/KC9rcz6iPk0k](https://prnt.sc/KC9rcz6iPk0k)
   not working with your tinymce(skins,quicktags,filemanager,plugins and etc.)
 * FYI: To do this form [https://prnt.sc/9BCYUHqgwfdW](https://prnt.sc/9BCYUHqgwfdW)
   I don’t understand why you need tinymce all that you can do with pure js instead
   of load a very huge js file, it’s work maximum 2-3 days work(I have done it myself
   which is much bigger than you are using,that is why know )
    -  This reply was modified 4 years, 3 months ago by [oganianarman](https://wordpress.org/support/users/oganianarman/).
 *  Plugin Author [MembershipWorks](https://wordpress.org/support/users/sourcefound/)
 * (@sourcefound)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/load-tinymce-from-wp/#post-15427274)
 * Hello oganianarman,
 * In this case MembershipWorks did not load the tinymce instance. The tinymce.min.
   js in your screenshot ([https://prnt.sc/sedcbLxo9kbO](https://prnt.sc/sedcbLxo9kbO))
   is not from our system. If we load tinymce the URL we use is [https://cdn.membershipworks.com/mce.js](https://cdn.membershipworks.com/mce.js).
 *  Thread Starter [oganianarman](https://wordpress.org/support/users/oganianarman/)
 * (@oganianarman)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/load-tinymce-from-wp/#post-15427349)
 * I didn’t say tinymce.min.js is from your system, it’s from WP([https://developer.wordpress.org/reference/functions/wp_editor/](https://developer.wordpress.org/reference/functions/wp_editor/)
   this function load it) and that is the problem you are overwriting it.
 *  Plugin Author [MembershipWorks](https://wordpress.org/support/users/sourcefound/)
 * (@sourcefound)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/load-tinymce-from-wp/#post-15427415)
 * Hello oganianarman,
 * Does your network console show a file loading from [https://cdn.membershipworks.com/mce.js](https://cdn.membershipworks.com/mce.js)?
   If not then we are not overwriting tinymce
 *  Thread Starter [oganianarman](https://wordpress.org/support/users/oganianarman/)
 * (@oganianarman)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/load-tinymce-from-wp/#post-15427476)
 * Yes it is loading. The issue simple for understanding.
 * Using this function([https://developer.wordpress.org/reference/functions/wp_editor/](https://developer.wordpress.org/reference/functions/wp_editor/))
   WP tinymce will be loaded and if I use your shortcode(with rich text editor) 
   in the SAME page with that function will be load your tinymce, in a page will
   be 2 tinymce. Your tinymce will ovwerwrote WP tinymce(e.g [https://prnt.sc/eFGL2Cp1KQHT](https://prnt.sc/eFGL2Cp1KQHT)),
   because tinymce is global variable or WP will ovwerwrote your tinymce(dependce
   from position of script), that is why your plugin should use the same WP tinymce,
   otherwise they will be overwrote each other.
 *  Plugin Author [MembershipWorks](https://wordpress.org/support/users/sourcefound/)
 * (@sourcefound)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/load-tinymce-from-wp/#post-15434274)
 * Hello oganianarman,
 * Our plugin is compatible with many plugins that utilize TinyMCE since WordPress
   3.X, including the built-in WordPress TinyMCE editor from before Gutenberg, and
   with plugins like TinyMCE Advanced.
 * Can you provide a URL to a page with the MembershipWorks “double loading” of 
   TinyMCE so we can try to determine what the issue is? If the information is confidential
   please email the URL and access information to [info@membershipworks.com](https://wordpress.org/support/topic/load-tinymce-from-wp/info@membershipworks.com?output_format=md).

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

The topic ‘Load Tinymce from WP’ is closed to new replies.

 * ![](https://ps.w.org/memberfindme/assets/icon-128x128.png?rev=998154)
 * [MembershipWorks - Membership, Events & Directory](https://wordpress.org/plugins/memberfindme/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/memberfindme/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/memberfindme/)
 * [Active Topics](https://wordpress.org/support/plugin/memberfindme/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/memberfindme/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/memberfindme/reviews/)

## Tags

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

 * 9 replies
 * 2 participants
 * Last reply from: [MembershipWorks](https://wordpress.org/support/users/sourcefound/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/load-tinymce-from-wp/#post-15434274)
 * Status: resolved