Ticket #6161: 6161_2.2.patch
File 6161_2.2.patch, 1.0 KB (added by , 13 years ago) |
---|
-
_source/plugins/autogrow/plugin.js
41 41 { 42 42 init : function( editor ) 43 43 { 44 for ( var eventName in { contentDom:1, key:1, selectionChange:1, insertElement:1 } ) 44 var eventsList = { contentDom:1, key:1, selectionChange:1, insertElement:1 }; 45 if (editor.config.autoGrow_onStartup) 46 eventsList[ 'instanceReady' ] = 1; 47 for ( var eventName in eventsList ) 45 48 { 46 49 editor.on( eventName, function( evt ) 47 50 { … … 77 80 * @example 78 81 * config.autoGrow_maxHeight = 400; 79 82 */ 83 84 /** 85 * Whether to have AutoGrow change the size immediately after the editor becomes ready. 86 * @name CKEDITOR.config.autoGrow_onStartup 87 * @type Boolean 88 * @default false 89 * @since 3.6.2 90 * @example 91 * config.autoGrow_onStartup = true; 92 */ 93 80 94 81 95 /** 82 96 * Fired when the AutoGrow plugin is about to change the size of the editor.