Ticket #5302: 5302.patch

File 5302.patch, 1.3 KB (added by Garry Yao, 10 years ago)
  • _source/core/config.js

     
    130130        enterMode : CKEDITOR.ENTER_P,
    131131
    132132        /**
     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        /**
    133144         * Just like the {@link CKEDITOR.config.enterMode} setting, it defines the behavior for the SHIFT+ENTER key.
    134145         * The allowed values are the following constants, and their relative
    135146         * behavior:
  • _source/plugins/enterkey/plugin.js

     
    291291
    292292        function enter( editor, mode, forceMode )
    293293        {
     294                forceMode = editor.config.forceEnterMode || forceMode;
     295
    294296                // Only effective within document.
    295297                if ( editor.mode != 'wysiwyg' )
    296298                        return false;
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy