X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fthemes%2Fdefault%2Ftheme.js;h=f7ff8e485df66f24119950ec521d2cf2cbc32b0a;hp=b2502024ece7414c567e04449d0acfb51a37c44c;hb=f0610347140239143439a511ee2bd48cb784f470;hpb=4e70ea24db840898be8cc21c950363a52a2a6aba diff --git a/_source/themes/default/theme.js b/_source/themes/default/theme.js index b250202..f7ff8e4 100644 --- a/_source/themes/default/theme.js +++ b/_source/themes/default/theme.js @@ -352,12 +352,13 @@ CKEDITOR.editor.prototype.resize = function( width, height, isContentHeight, res * Gets the element that can be freely used to check the editor size. This method * is mainly used by the resize plugin, which adds a UI handle that can be used * to resize the editor. + * @param {Boolean} forContents Whether to return the "contents" part of the theme instead of the container. * @returns {CKEDITOR.dom.element} The resizable element. * @example */ -CKEDITOR.editor.prototype.getResizable = function() +CKEDITOR.editor.prototype.getResizable = function( forContents ) { - return this.container; + return forContents ? CKEDITOR.document.getById( 'cke_contents_' + this.name ) : this.container; }; /**