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