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 Version 1

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 (last modified by Martin Kou)

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.

Change History (2)

comment:1 Changed 15 years ago by Martin Kou

Description: modified (diff)

In the conference with Senthil yesterday, he also expressed that he wished to see something like this:

CKEDITOR.plugins.addExternal( 'my_plugin_1,my_plugin_2,my_plugin_3,my_plugin_4', 'file:///c:/my_plugins' );

Instead of having to write an addExternal() line for every plugin in a file.

Changed 15 years ago by Martin Kou

Attachment: 2906.patch added
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy