Conflict with built-in Web Component

Forum to discuss the new web client version of Servoy.

Conflict with built-in Web Component

Postby sergei.sheinin » Thu Apr 06, 2017 12:23 pm

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?
Sergei Sheinin
JavaScript, RDBMS
http://js2dx.com
sergei.sheinin
 
Posts: 79
Joined: Wed May 07, 2014 3:22 pm

Re: Conflict with built-in Web Component

Postby sergei.sheinin » Fri Apr 07, 2017 8:59 am

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.
Sergei Sheinin
JavaScript, RDBMS
http://js2dx.com
sergei.sheinin
 
Posts: 79
Joined: Wed May 07, 2014 3:22 pm

Re: Conflict with built-in Web Component

Postby sbutler » Fri Apr 07, 2017 4:25 pm

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.
Scott Butler
iTech Professionals, Inc.
SAN Partner

Servoy Consulting & Development
Servoy University- Training Videos
Servoy Components- Plugins, Beans, and Web Components
Servoy Guy- Tips & Resources
ServoyForge- Open Source Components
User avatar
sbutler
Servoy Expert
 
Posts: 759
Joined: Sun Jan 08, 2006 7:15 am
Location: Cincinnati, OH


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 3 guests