Ticket #4971: 4791.patch

File 4791.patch, 740 bytes (added by pomu0325, 14 years ago)

workaround patch. force default behavior for Shift+Enter inside <li>

  • _source/plugins/enterkey/plugin.js

     
    2121        {
    2222                enterBlock : function( editor, mode, range, forceMode )
    2323                {
     24                        var elementPath = new CKEDITOR.dom.elementPath( editor.getSelection().getStartElement() );
     25
     26                        var startBlock = elementPath.block,
     27                                startBlockTag = startBlock && elementPath.block.getName();
     28                        if ( forceMode && startBlockTag == 'li' )
     29                        {
     30                                enterBr( editor, mode, range, forceMode );
     31                                return;
     32                        }
     33
    2434                        // Get the range for the current selection.
    2535                        range = range || getRange( editor );
    2636
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy