From 20f9884f9a52e810d7e3cdbdd92eabc64812e097 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 15 Mar 2014 15:05:42 -0300 Subject: Squashed 'mod/ckeditor/' content from commit 9f4ede0 git-subtree-dir: mod/ckeditor git-subtree-split: 9f4ede06562e229a26d7ae8d32ebb23453c293e7 --- .../plugins/autogrow/samples/autogrow.html | 99 ++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 vendors/ckeditor/plugins/autogrow/samples/autogrow.html (limited to 'vendors/ckeditor/plugins/autogrow/samples') diff --git a/vendors/ckeditor/plugins/autogrow/samples/autogrow.html b/vendors/ckeditor/plugins/autogrow/samples/autogrow.html new file mode 100644 index 000000000..72cba9032 --- /dev/null +++ b/vendors/ckeditor/plugins/autogrow/samples/autogrow.html @@ -0,0 +1,99 @@ + + + + + AutoGrow Plugin — CKEditor Sample + + + + + + + + +

+ CKEditor Samples » Using AutoGrow Plugin +

+
+

+ This sample shows how to configure CKEditor instances to use the + 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 + CKEditor window infinitely in order to avoid introducing scrollbars to the editing area. +

+

+ 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 + 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 + autoGrow_maxHeight attribute, insert the following JavaScript call to your code: +

+
+CKEDITOR.replace( 'textarea_id', {
+	extraPlugins: 'autogrow',
+	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 + the <textarea> element to be replaced with CKEditor. The maximum height should + be given in pixels. +

+
+
+

+ + + +

+

+ + + +

+

+ +

+
+ + + -- cgit v1.2.3