1 --- autogrow/plugin.js 2013-11-14 13:14:39.000000000 +0200
2 +++ autogrow/plugin.js 2014-01-22 11:37:50.747323000 +0200
7 + if (editor.config.autoGrow_disabled && typeof editor.config.autoGrow_disabled != 'undefined') {
11 var maximize = editor.getCommand( 'maximize' );
12 // Disable autogrow when the editor is maximized .(#6339)
13 if( maximize && maximize.state == CKEDITOR.TRISTATE_ON )
15 editor.on( 'instanceReady', function() {
17 var editable = editor.editable(),
22 // Simply set auto height with div wysiwyg.
23 if ( editable.isInline() )
25 // For framed wysiwyg we need to resize the editor.
28 + editor.addCommand( 'autogrowDisable', {
29 + exec: function( editor ) {
30 + editor.resize( '100%', lastResizedHeight, true );
33 + editor.addCommand( 'autogrowEnable', {
34 + exec: function( editor, a ) {
35 + var scrollable = getScrollable( editor ),
36 + currentHeight = editor.window.getViewPaneSize().height;
37 + if (!currentHeight) {
38 + currentHeight = parseInt(editor.config.height);
40 + lastResizedHeight = currentHeight;
41 + lastHeight = resizeEditor( editor );
44 editor.addCommand( 'autogrow', {
45 exec: function( editor ) {
46 lastHeight = resizeEditor( editor, lastHeight );