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