Ticket #5302: 5302.patch
File 5302.patch, 1.3 KB (added by , 15 years ago) |
---|
-
_source/core/config.js
130 130 enterMode : CKEDITOR.ENTER_P, 131 131 132 132 /** 133 * Force the respection of {@link CKEDITOR.config.enterMode} as line break regardless of the context, 134 * E.g. If {@link CKEDITOR.config.enterMode} is set to {@link CKEDITOR.ENTER_P}, 135 * press enter key inside a 'div' will create a new paragraph with 'p' instead of 'div'. 136 * @default false 137 * @example 138 * // Not recommended. 139 * config.forceEnterMode = true; 140 */ 141 forceEnterMode : false, 142 143 /** 133 144 * Just like the {@link CKEDITOR.config.enterMode} setting, it defines the behavior for the SHIFT+ENTER key. 134 145 * The allowed values are the following constants, and their relative 135 146 * behavior: -
_source/plugins/enterkey/plugin.js
291 291 292 292 function enter( editor, mode, forceMode ) 293 293 { 294 forceMode = editor.config.forceEnterMode || forceMode; 295 294 296 // Only effective within document. 295 297 if ( editor.mode != 'wysiwyg' ) 296 298 return false;