#3173: Make it possible to register event listeners on instance creation
-------------------------+--------------------------------------------------
 Reporter:  fredck       |       Owner:  fredck      
     Type:  New Feature  |      Status:  new         
 Priority:  Normal       |   Milestone:  CKEditor 3.0
Component:  General      |     Version:              
 Keywords:  Confirmed    |  
-------------------------+--------------------------------------------------
 The following currently doesn't work in all cases:

 {{{
 var editor = editor.replace( 'editor1' );
 editor.on( 'someEvent', function() { ... } );
 }}}

 ... because the event may be fired during the "replace" call, so the event
 registration comes too late.

 There are ways to do so, but it's a little cumbersome:

 {{{
 CKEDITOR.on( 'instanceCreated', function( ev )
     {
         ev.editor.on( 'someEvent', function() { ... } );
     });

 editor.replace( 'editor1' );
 }}}

 There should be instead a way to do that on instance creation, just like
 this:

 {{{
 editor.replace( 'editor1',
     {
         // ... some editor settings

         on :
         {
             someEvent : function() { ... },
             otherEvent : function() { ... }
         }
     });
 }}}

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/3173>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to