Hi, we are developing various custom plugins for ckeditor and we have run into a problem of code duplication across these plugins. I was wondering if there were a best practice to including some shared functions in all our custom plugins? We are trying to minimally or not at all modify the ckeditor source - so preferable to keep all our custom code outside ckeditor code completely. I tried putting the shared code in a plugin and loading that up, and it did work but it felt a bit hacky since ckeditor expected this code to not be a library but its own idea of a plugin.
Another related question, has anyone written polymorphic plugins or dialogs? I've noticed alot of code duplication in this area and was thinking about how to reduce it via a superclass plugin with subclasses. E.G. a multimedia plugin (like an abstract class) with image, audio and video subclasses.
Best,
John Martirano
Another related question, has anyone written polymorphic plugins or dialogs? I've noticed alot of code duplication in this area and was thinking about how to reduce it via a superclass plugin with subclasses. E.G. a multimedia plugin (like an abstract class) with image, audio and video subclasses.
Best,
John Martirano