X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=_samples%2Fenterkey.html;h=e6e6c8ffa2f1b72a4ed75d6d54fe60b57635b526;hb=48b1db88210b4160dce439c6e3e32e14af8c106b;hp=6477d1766b496143edd88747f2720e37f1a5ad75;hpb=7cd80714081a8ffdf4a1a8d2c72f120ed5ef3d6d;p=ckeditor.git diff --git a/_samples/enterkey.html b/_samples/enterkey.html index 6477d17..e6e6c8f 100644 --- a/_samples/enterkey.html +++ b/_samples/enterkey.html @@ -1,16 +1,16 @@
-
+ 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.
+