Ticket #3167: 3167_2.patch

File 3167_2.patch, 590 bytes (added by Martin Kou, 10 years ago)
  • _source/plugins/enterkey/plugin.js

     
    211211
    212212                var isEndOfBlock = range.checkEndOfBlock();
    213213
    214                 var elementPath = new CKEDITOR.dom.elementPath( range.getBoundaryNodes().startNode );
     214                var elementPath = new CKEDITOR.dom.elementPath( editor.getSelection().getStartElement() );
    215215
    216216                var startBlock = elementPath.block,
    217217                        startBlockTag = startBlock && elementPath.block.getName();
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy