Ticket #6529: 6529.patch

File 6529.patch, 937 bytes (added by Garry Yao, 13 years ago)
  • _source/plugins/selection/plugin.js

     
    885885                                                        node = node.getChild( range.startOffset );
    886886
    887887                                                        if ( !node || node.type != CKEDITOR.NODE_ELEMENT )
    888                                                                 node = range.startContainer;
    889 
    890                                                         var child = node.getFirst();
    891                                                         while (  child && child.type == CKEDITOR.NODE_ELEMENT )
    892                                                         {
    893                                                                 node = child;
    894                                                                 child = child.getFirst();
    895                                                         }
    896                                                 }
     888                                                                node = range.startContainer.$;
     889                                                        else
     890                                                        {
     891                                                                var child = node.getFirst();
     892                                                                while (  child && child.type == CKEDITOR.NODE_ELEMENT )
     893                                                                {
     894                                                                        node = child;
     895                                                                        child = child.getFirst();
     896                                                                }
     897                                                        }
     898                                                }
    897899                                                else
    898900                                                {
    899901                                                        node = range.startContainer;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy