Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vanilla ckeditor-3.5.4
[ckeditor.git]
/
_source
/
plugins
/
autogrow
/
plugin.js
diff --git
a/_source/plugins/autogrow/plugin.js
b/_source/plugins/autogrow/plugin.js
index
f31e9c6
..
d6c4697
100644
(file)
--- a/
_source/plugins/autogrow/plugin.js
+++ b/
_source/plugins/autogrow/plugin.js
@@
-1,5
+1,5
@@
/*
\r
/*
\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
@@
-9,6
+9,8
@@
For licensing, see LICENSE.html or http://ckeditor.com/license
(function(){
\r
var resizeEditor = function( editor )
\r
{
\r
(function(){
\r
var resizeEditor = function( editor )
\r
{
\r
+ if ( !editor.window )
\r
+ return;
\r
var doc = editor.document,
\r
currentHeight = editor.window.getViewPaneSize().height,
\r
newHeight;
\r
var doc = editor.document,
\r
currentHeight = editor.window.getViewPaneSize().height,
\r
newHeight;
\r
@@
-78,7
+80,7
@@
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
/**
\r
* Fired when the AutoGrow plugin is about to change the size of the editor.
\r
\r
/**
\r
* Fired when the AutoGrow plugin is about to change the size of the editor.
\r
- * @name CKEDITOR#autogrow
\r
+ * @name CKEDITOR.editor#autogrow
\r
* @event
\r
* @param {Number} data.currentHeight The current height of the editor (before the resizing).
\r
* @param {Number} data.newHeight The new height of the editor (after the resizing). It can be changed
\r
* @event
\r
* @param {Number} data.currentHeight The current height of the editor (before the resizing).
\r
* @param {Number} data.newHeight The new height of the editor (after the resizing). It can be changed
\r