#3318: There should be some guarantee at plugin loading order
-----------------------+----------------------------------------------------
Reporter: martinkou | Owner: martinkou
Type: Bug | Status: new
Priority: Normal | Milestone: CKEditor 3.0
Component: General | Version: SVN (CKEditor)
Keywords: Oracle |
-----------------------+----------------------------------------------------
Comment(by martinkou):
With [topological sorting
http://en.wikipedia.org/wiki/Topological_sorting], it should be possible
to guarantee the init() or onLoad() functions of plugins being required
are called before the corresponding functions at the current plugin. i.e.
if I have a plugin like this...
{{{
CKEDITOR.plugins.add( 'myPlugin', { requires : [ 'iframedialog' ], ... }
);
}}}
and then the iframedialog subsequently requires the dialog plugin, then it
should be guaranteed that the dialog plugin is initialized first, then
iframedialog, and finally myPlugin - no matter how they're ordered in the
config.plugins string.
Currently, plugins the appear in the config.plugins string are first
loaded according to the order they appear; then, the first level of
required plugins that didn't appear in the config.plugins list are loaded;
after that, the second level of required plugins (i.e. those required by
the first level) are loaded; the process repeats itself until there's no
more required plugin that hasn't been loaded.
--
Ticket URL: <http://dev.fckeditor.net/ticket/3318#comment:1>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac