X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Fautogrow.html;h=5d159e31120033e10328ec3cd380d466668e8e2e;hb=e73319a12b56100b29ef456fd74114fe5519e01c;hp=e5ac0e0b441c0fde41e348a1b629c6db5614147c;hpb=48b1db88210b4160dce439c6e3e32e14af8c106b;p=ckeditor.git diff --git a/_samples/autogrow.html b/_samples/autogrow.html index e5ac0e0..5d159e3 100644 --- a/_samples/autogrow.html +++ b/_samples/autogrow.html @@ -18,8 +18,8 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
This sample shows how to configure CKEditor instances to use the
- autogrow plugin that lets the editor window expand and shrink
- depending on the amount and size of content entered in the editing area.
+ AutoGrow (autogrow
) plugin that lets the editor window expand
+ and shrink depending on the amount and size of content entered in the editing area.
In its default implementation the AutoGrow feature can expand the @@ -27,17 +27,20 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
It is also possible to set a maximum height for the editor window. Once CKEditor
- editing area reaches the value in pixels specified in the autoGrow_maxHeight
- attribute, scrollbars will be added and the editor window will no longer expand.
+ editing area reaches the value in pixels specified in the
+ autoGrow_maxHeight
+
configuration setting, scrollbars will be added and the editor window will no longer expand.
- To add a CKEditor instance using the autogrow plugin and its
+ To add a CKEditor instance using the autogrow
plugin and its
autoGrow_maxHeight
attribute, insert the following JavaScript call to your code:
CKEDITOR.replace( 'textarea_id', { extraPlugins : 'autogrow', - autoGrow_maxHeight : 800 + autoGrow_maxHeight : 800, + // Remove the Resize plugin as it does not make sense to use it in conjunction with the AutoGrow plugin. + removePlugins : 'resize' });
Note that textarea_id
in the code above is the id
attribute of
@@ -58,13 +61,14 @@ For licensing, see LICENSE.html or http://ckeditor.com/license