Ticket #3703: 3703.patch

File 3703.patch, 864 bytes (added by Garry Yao, 15 years ago)
  • _source/plugins/editingblock/plugin.js

     
    117117                                        if ( editor.config.startupFocus )
    118118                                                editor.focus();
    119119
    120                                         // Fire instanceReady for both the editor and CKEDITOR.
    121                                         editor.fireOnce( 'instanceReady' );
    122                                         CKEDITOR.fire( 'instanceReady', null, editor );
    123                                 });
     120                                        // Fire instanceReady for both the editor and CKEDITOR, but
     121                                        // defer this until the whole execution has completed
     122                                        // to guarantee the editor is fully responsible.
     123                                        setTimeout( function(){
     124                                                editor.fireOnce( 'instanceReady' );
     125                                                CKEDITOR.fire( 'instanceReady', null, editor );
     126                                        } );
     127                                });
    124128                }
    125129        });
    126130
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy