Changeset 5286


Ignore:
Timestamp:
03/24/2010 05:21:21 PM (5 years ago)
Author:
garry.yao
Message:

#5302: Adding config option 'CKEDITOR.config.forceEnterMode'.

Location:
CKEditor/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r5285 r5286  
    4747                                        Now the configuration entry is named 'config.stylesSet' instead of config.stylesCombo_stylesSet and the default location
    4848                                        is under the 'styles' plugin instead of 'stylescombo'.</li>
     49                <li><a href="http://dev.fckeditor.net/ticket/5302">#5302</a> : Adding config option 'CKEDITOR.config.forceEnterMode'.</li>
    4950        </ul>
    5051        <p>
  • CKEditor/trunk/_source/core/config.js

    r5206 r5286  
    1 /*
     1/*
    22Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
    33For licensing, see LICENSE.html or http://ckeditor.com/license
     
    131131
    132132        /**
     133         * Force the respect 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         * @since 3.2.1
     137         * @default false
     138         * @example
     139         * // Not recommended.
     140         * config.forceEnterMode = true;
     141         */
     142        forceEnterMode : false,
     143
     144        /**
    133145         * Just like the {@link CKEDITOR.config.enterMode} setting, it defines the behavior for the SHIFT+ENTER key.
    134146         * The allowed values are the following constants, and their relative
  • CKEditor/trunk/_source/plugins/enterkey/plugin.js

    r5252 r5286  
    292292        function enter( editor, mode, forceMode )
    293293        {
     294                forceMode = editor.config.forceEnterMode || forceMode;
     295
    294296                // Only effective within document.
    295297                if ( editor.mode != 'wysiwyg' )
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy