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 --- .../samples/plugins/enterkey/enterkey.html | 103 +++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 vendors/ckeditor/samples/plugins/enterkey/enterkey.html (limited to 'vendors/ckeditor/samples/plugins/enterkey/enterkey.html') diff --git a/vendors/ckeditor/samples/plugins/enterkey/enterkey.html b/vendors/ckeditor/samples/plugins/enterkey/enterkey.html new file mode 100644 index 000000000..c2b19b5d0 --- /dev/null +++ b/vendors/ckeditor/samples/plugins/enterkey/enterkey.html @@ -0,0 +1,103 @@ + + + + + ENTER Key Configuration — CKEditor Sample + + + + + + + + + +

+ CKEditor Samples » ENTER Key Configuration +

+
+

+ This sample shows how to configure the Enter and Shift+Enter keys + to perform actions specified in the + enterMode + and shiftEnterMode + parameters, respectively. + You can choose from the following options: +

+ +

+ The sample code below shows how to configure CKEditor to create a <div> block when Enter key is pressed. +

+
+CKEDITOR.replace( 'textarea_id', {
+	enterMode: CKEDITOR.ENTER_DIV
+});
+

+ Note that textarea_id in the code above is the id attribute of + the <textarea> element to be replaced. +

+
+
+ When Enter is pressed:
+ +
+
+ When Shift+Enter is pressed:
+ +
+
+
+

+
+ +

+

+ +

+
+ + + -- cgit v1.2.3