Opened 15 years ago
Last modified 15 years ago
#2906 closed New Feature
Make it possible to load multiple plugins from a single plugin.js file — at Initial Version
Reported by: | Martin Kou | Owned by: | Martin Kou |
---|---|---|---|
Priority: | Must have (possibly next milestone) | Milestone: | CKEditor 3.0 |
Component: | General | Version: | SVN (FCKeditor) - Retired |
Keywords: | Review- | Cc: |
Description
This feature request came from Senthil Kumaran of Oracle.
It is possible for some CKEditor users to have a lot of custom plugins written inside a single plugin.js file. Right now it is impossible for CKEditor to do so because even if you've defined a number of plugins pointing to the same path, like:
CKEDITOR.plugins.addExternal( 'my_plugin_1', 'file://c:/my_plugins/' ); CKEDITOR.plugins.addExternal( 'my_plugin_2', 'file://c:/my_plugins/' ); CKEDITOR.plugins.addExternal( 'my_plugin_3', 'file://c:/my_plugins/' ); CKEDITOR.plugins.addExternal( 'my_plugin_4', 'file://c:/my_plugins/' );
And instructed the editor to initialize all of them:
config.plugins += ',my_plugin_1,my_plugin_2,my_plugin_3,my_plugin_4';
The editor would still only initialize one of the plugins, because it thinks it has already done the initialization for file:///c:/my_plugins/plugin.js after the first init() call. Subsequent plugin initializations are ignored right now.