Changeset 7199


Ignore:
Timestamp:
08/15/2011 05:40:46 AM (3 years ago)
Author:
garry.yao
Message:

#6161: new config for autogrow to happen on startup.

Location:
CKEditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r7198 r7199  
    4343                <li><a href="http://dev.ckeditor.com/ticket/6089">#6089</a> : Minimum compatibility with iOS5. </li> 
    4444                <li><a href="http://dev.ckeditor.com/ticket/7931">#7931</a> : The <code><a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#event:mode">mode</a></code> event now carries the previous editor mode.</li> 
     45                <li><a href="http://dev.ckeditor.com/ticket/6161">#6161</a> : Add new <a href="http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.autoGrow_onStartup">autoGrow_onStartup</a> configuration option.</li> 
    4546        </ul> 
    4647        <p> 
  • CKEditor/trunk/_source/plugins/autogrow/plugin.js

    r7156 r7199  
    4242                init : function( editor ) 
    4343                { 
    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                        editor.config.autoGrow_onStartup && ( eventsList[ 'instanceReady' ] = 1 ); 
     46                        for ( var eventName in eventsList ) 
    4547                        { 
    4648                                editor.on( eventName, function( evt ) 
     
    7880 * config.autoGrow_maxHeight = 400; 
    7981 */ 
     82  
     83 /** 
     84 * Whether to have the auto grow happen on editor creation. 
     85 * @name CKEDITOR.config.autoGrow_onStartup 
     86 * @type Boolean 
     87 * @default false 
     88 * @since 3.6.2 
     89 * @example 
     90 * config.autoGrow_onStartup = true; 
     91 */ 
    8092 
    8193/** 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy