X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_samples%2Fenterkey.html;h=52d88d40e6dfb7aeba4e37cf7ac511634476a9e4;hb=a272c66d841421f8bf933c16535bdcde1c4649fc;hp=8fa9fc0d93dc813a69a842119294a9e65b3124fd;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91;p=ckeditor.git diff --git a/_samples/enterkey.html b/_samples/enterkey.html index 8fa9fc0..52d88d4 100644 --- a/_samples/enterkey.html +++ b/_samples/enterkey.html @@ -1,16 +1,16 @@ - Sample - CKEditor - + ENTER Key Configuration — CKEditor Sample + - - -

- CKEditor Sample +

+ CKEditor Sample — 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:
- -
-
- -
-

-
- -

-

- -

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

+
+ +

+

+ +

+