Ticket #3028: 3028_2.patch
File 3028_2.patch, 1.4 KB (added by , 14 years ago) |
---|
-
_source/plugins/editingblock/plugin.js
40 40 editor.on( 'uiReady', function() 41 41 { 42 42 editor.setMode( editor.config.startupMode ); 43 44 if ( editor.config.startupFocus )45 editor.focus();46 43 }); 47 44 48 45 editor.on( 'afterSetData', function() … … 104 101 editor.focus(); 105 102 }); 106 103 104 if ( editor.config.startupFocus ) 105 editor.focus(); 106 107 107 // Fire instanceReady for both the editor and CKEDITOR. 108 108 editor.fireOnce( 'instanceReady' ); 109 109 CKEDITOR.fire( 'instanceReady', null, editor ); -
_source/plugins/sourcearea/plugin.js
77 77 if ( keystrokeHandler ) 78 78 keystrokeHandler.attach( textarea ); 79 79 80 editor.mode = 'source'; 81 editor.fire( 'mode' ); 80 setTimeout( function() 81 { 82 editor.mode = 'source'; 83 editor.fire( 'mode' ); 84 }, 85 ( CKEDITOR.env.gecko || CKEDITOR.env.webkit ) ? 100 : 0 ); 82 86 }, 83 87 84 88 loadData : function( data )