Ticket #3398: 3398.patch

File 3398.patch, 615 bytes (added by Josh Nisly, 10 years ago)
  • _source/plugins/indent/plugin.js

     
    235235                        var bookmarks = selection.createBookmarks( true ),
    236236                                nearestListBlock = range.getCommonAncestor();
    237237
    238                         while ( !( nearestListBlock.type == CKEDITOR.NODE_ELEMENT &&
     238                        while ( nearestListBlock && !( nearestListBlock.type == CKEDITOR.NODE_ELEMENT &&
    239239                                listNodeNames[ nearestListBlock.getName() ] ) )
    240240                                nearestListBlock = nearestListBlock.getParent();
    241241
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy