indvd00m@0: indvd00m@0: indvd00m@0: indvd00m@0:
indvd00m@0: indvd00m@0:
indvd00m@0: This sample shows how to configure the Enter and Shift+Enter keys
indvd00m@0: to perform actions specified in the
indvd00m@0: enterMode
indvd00m@0: and shiftEnterMode
indvd00m@0: parameters, respectively.
indvd00m@0: You can choose from the following options:
indvd00m@0:
ENTER_P – new <p> paragraphs are created;ENTER_BR – lines are broken with <br> elements;ENTER_DIV – new <div> blocks are created.
indvd00m@0: The sample code below shows how to configure CKEditor to create a <div> block when Enter key is pressed.
indvd00m@0:
indvd00m@0: CKEDITOR.replace( 'textarea_id', {
indvd00m@0: enterMode: CKEDITOR.ENTER_DIV
indvd00m@0: });
indvd00m@0:
indvd00m@0: Note that textarea_id in the code above is the id attribute of
indvd00m@0: the <textarea> element to be replaced.
indvd00m@0: