Ticket #3028: 3028_light.patch
File 3028_light.patch, 1.5 KB (added by , 15 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 { 106 // Firefox don't like to execute it directly, so we use 107 // a timeout. 108 setTimeout( function(){ editor.focus(); }, 100); 109 } 110 107 111 // Fire instanceReady for both the editor and CKEDITOR. 108 112 editor.fireOnce( 'instanceReady' ); 109 113 CKEDITOR.fire( 'instanceReady', null, editor ); -
_source/plugins/sourcearea/plugin.js
62 62 } ); 63 63 } 64 64 65 textarea.on( 'blur', function() 66 { 67 editor.focusManager.blur(); 68 }); 69 textarea.on( 'focus', function() 70 { 71 editor.focusManager.focus(); 72 } ); 73 65 74 // Reset the holder element and append the 66 75 // <textarea> to it. 67 76 holderElement.setHtml( '' );