From 1275e68efa680e55fd29a377c9c58c59bb7f235e Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 10 Jul 2018 22:01:22 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ckeditor/samples/old/enterkey/enterkey.html | 106 +++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 cgi-bin/html/ckeditor/samples/old/enterkey/enterkey.html (limited to 'cgi-bin/html/ckeditor/samples/old/enterkey') diff --git a/cgi-bin/html/ckeditor/samples/old/enterkey/enterkey.html b/cgi-bin/html/ckeditor/samples/old/enterkey/enterkey.html new file mode 100644 index 0000000..96ca519 --- /dev/null +++ b/cgi-bin/html/ckeditor/samples/old/enterkey/enterkey.html @@ -0,0 +1,106 @@ + + + + + + ENTER Key Configuration — CKEditor Sample + + + + + + + + +

+ CKEditor Samples » ENTER Key Configuration +

+
+ This sample is not maintained anymore. Check out its brand new version in CKEditor SDK. +
+
+

+ 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.1-26-g67d0