X-Git-Url: https://scm.cri.ensmp.fr/git/ckeditor.git/blobdiff_plain/256592bf803e851aa7fc953e08a6e9e58d970f8c..871bad8291b6dbc29d489d95d185458caab25158:/skins/ckeditor/_samples/enterkey.html diff --git a/skins/ckeditor/_samples/enterkey.html b/skins/ckeditor/_samples/enterkey.html new file mode 100644 index 0000000..e6e6c8f --- /dev/null +++ b/skins/ckeditor/_samples/enterkey.html @@ -0,0 +1,115 @@ + + + + + ENTER Key Configuration — 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:
+ +
+
+
+

+
+ +

+

+ +

+
+ + +