In process of development of TinyMCE Web Component I discovered that a conflict arises from Servoy loading its built-in component of same structure contained in “servoy_ngclient_8.1.2.3031.jar” under “\war\servoydefault\htmlarea\lib\tinymce”. As a result of this conflict I am unable to load plugins available in latest TinyMCE. Servoy uses ver. 4.1.6 (2014-10-08) while latest available version is 4.5.5 (2017-03-07). There appear to be substantial differences between these two versions, such as support for “external_plugins” option not available in Servoy version.
Has anyone come across such problem before? Any suggestions on how it may be overcome?
Hello Servoy Experts! This is a very relevant topic, may I have your input please? Is there a way to override built-in “tinymce.js” library in favor of the latest version downloaded from its site? Perhaps a setting in MANIFEST.MF? A controller setting, a new angular directive, anything?
Thank you in advance.
This is really more of a problem with the library being used. If the library doesn’t provide some kind of noConflict mode like jQuery, then you can only have 1 loaded at a time. So you’ll have to figure out some way to unload servoy’s tinymce, setting window.tinymce to null or something, and then reload your js file, so the top level window.tinymce points to your new version. You might have to shim it in some way to get that to work.
Alternatively, you would have to alter the tinymce source to adjust the namespace for your version so they could both exist at the same time.