Line 1: | Line 1: | ||
== EnterMode == | == EnterMode == | ||
− | + | Sets the editor behavior when the ENTER key is pressed. Accepted values are 'p', 'div', and 'br'. | |
− | <pre> | + | |
− | </pre> | + | For example, when typing two lines of text, separating them with ENTER, the following is the expected output for each setting: |
+ | |||
+ | <pre> | ||
+ | <!-- If EnterMode = 'p' --> | ||
+ | <p> | ||
+ | Line 1 | ||
+ | </p> | ||
+ | <p> | ||
+ | Line 2 | ||
+ | </p> | ||
+ | |||
+ | <!-- If EnterMode = 'div' --> | ||
+ | <div> | ||
+ | Line 1 | ||
+ | </div> | ||
+ | <div> | ||
+ | Line 2 | ||
+ | </div> | ||
+ | <!-- If EnterMode = 'br' --> | ||
+ | Line 1<br /> | ||
+ | Line 2 | ||
+ | </pre> | ||
+ | |||
+ | For proper semantic we '''strongly recommend''' leaving this option set to its default value ''''p''''. Also , when EnterMode is set to 'p' or 'div', the editor guarantees that inline elements, like text and images, will be always hold by block elements. |
Revision as of 11:28, 29 February 2008
EnterMode
Sets the editor behavior when the ENTER key is pressed. Accepted values are 'p', 'div', and 'br'.
For example, when typing two lines of text, separating them with ENTER, the following is the expected output for each setting:
<!-- If EnterMode = 'p' --> <p> Line 1 </p> <p> Line 2 </p> <!-- If EnterMode = 'div' --> <div> Line 1 </div> <div> Line 2 </div> <!-- If EnterMode = 'br' --> Line 1<br /> Line 2
For proper semantic we strongly recommend leaving this option set to its default value 'p'. Also , when EnterMode is set to 'p' or 'div', the editor guarantees that inline elements, like text and images, will be always hold by block elements.