Opened 15 years ago

Closed 15 years ago

#2906 closed New Feature (fixed)

Make it possible to load multiple plugins from a single plugin.js file

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.

Attachments (1)

2906.patch (3.0 KB) - added by Martin Kou 15 years ago.

Download all attachments as: .zip

Change History (5)

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

comment:2 Changed 15 years ago by Martin Kou

Keywords: Review? added

comment:3 Changed 15 years ago by Frederico Caldeira Knabben

Keywords: Review- added; Review? removed

The patch includes changes to config.js, with I believe (I hope actually) are testing stuff that ended up into it by mistake.

Other than the config.js changes, the rest is ok and can be committed.

comment:4 Changed 15 years ago by Martin Kou

Resolution: fixed
Status: newclosed

Fixed with [3069]. All changes in config.js are removed from the commit.

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