I'm the lead developer for a Web UI framework that is used by many other products at my company. Some of these products are already shipping with some earlier version of ckeditor.
I'm in the process of adding support for ckeditor 4.3.x in our framework, and I did not want to force products already using CK to migrate to the newer release I'm introducing. I was also planning on switching from dojo's richtext to ckeditor in some of the "widgets" provided by the framework. So if a product uses its version of ckeditor, and a widget from our framework, you end up with two different versions of ckeditor in use on the same page.
Our framework is loosely based on AMD/dojo, so I've created a module "ck/editor" that pulls in all of the core ckeditor function and some basic plugins. I made a minor change in core/ckeditor_base.js so that it wouldn't set any global properties on window, since I knew earlier versions of CK would be doing the same.
I'm as far as getting a page based on the "inline example" to load without any errors, but if I click on a toolbar button, I run into some dynamically constructed javascript like this:
function onmousedown(event) {
return CKEDITOR.tools.callFunction(34,event);
}
This seems to come from the button plugin, and it looks like a few other plugins might be using this approach. How hard would it be for me to get this to work? Has anyone tried it or encountered the same issue before? Thanks!