X-Git-Url: https://scm.cri.ensmp.fr/git/ckeditor.git/blobdiff_plain/e11f66eb655db8339a2d9b197b89f6c3b26099e1..579f65bc95a773bc6f8da75f6849ea49f365368b:/skins/ckeditor/samples/plugins/enterkey/enterkey.html diff --git a/skins/ckeditor/samples/plugins/enterkey/enterkey.html b/skins/ckeditor/samples/plugins/enterkey/enterkey.html new file mode 100644 index 0000000..2d51501 --- /dev/null +++ b/skins/ckeditor/samples/plugins/enterkey/enterkey.html @@ -0,0 +1,103 @@ + + + +
+ +
+ 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:
+
ENTER_P
– new <p>
paragraphs are created;ENTER_BR
– lines are broken with <br>
elements;ENTER_DIV
– new <div>
blocks are created.
+ 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.
+