X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fautogrow%2Fplugin.js;h=d6c4697a96de384e77dbdc8bda9cb7f5ca248b45;hb=f0610347140239143439a511ee2bd48cb784f470;hp=f31e9c692be9b64a3d2b15497be3f51ba306cd37;hpb=039a051ccf3901311661022a30afd60fc38130c9;p=ckeditor.git diff --git a/_source/plugins/autogrow/plugin.js b/_source/plugins/autogrow/plugin.js index f31e9c6..d6c4697 100644 --- a/_source/plugins/autogrow/plugin.js +++ b/_source/plugins/autogrow/plugin.js @@ -1,5 +1,5 @@ /* -Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ @@ -9,6 +9,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license (function(){ var resizeEditor = function( editor ) { + if ( !editor.window ) + return; var doc = editor.document, currentHeight = editor.window.getViewPaneSize().height, newHeight; @@ -78,7 +80,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license /** * Fired when the AutoGrow plugin is about to change the size of the editor. - * @name CKEDITOR#autogrow + * @name CKEDITOR.editor#autogrow * @event * @param {Number} data.currentHeight The current height of the editor (before the resizing). * @param {Number} data.newHeight The new height of the editor (after the resizing). It can be changed