Ticket #3657: 3657.patch

File 3657.patch, 796 bytes (added by Garry Yao, 10 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    120120                        enterMode = editor.config.enterMode;
    121121
    122122                // When enterMode set to block, we'll establing new paragraph if the
    123                 // current range is block-less within body.
     123                // current range contains only block-less inline elements within body.
    124124                if ( enterMode != CKEDITOR.ENTER_BR
    125125                         && blockLimit.getName() == 'body'
    126                          && !path.block )
     126                         && !path.block
     127                         && !( path.lastElement.getName() in CKEDITOR.dtd.$block ) )
    127128                {
    128129                        var selection = evt.data.selection,
    129130                                range = evt.data.selection.getRanges()[0],
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy