Ticket #4273: fcktablehandler_gecko.js-select-bug.patch

File fcktablehandler_gecko.js-select-bug.patch, 706 bytes (added by dshafik, 3 years ago)
  • editor/_source/internals/fcktablehandler_gecko.js

    old new  
    2727 
    2828        var oSelection = FCKSelection.GetSelection() ; 
    2929 
    30         // If the selection is a text. 
    31         if ( oSelection.rangeCount == 1 && oSelection.anchorNode.nodeType == 3 ) 
     30        // If the selection is a text, or a list item 
     31        // Note: If they have at able in a list, we could be in trouble 
     32        if ( oSelection.rangeCount == 1 && oSelection.anchorNode.nodeType == 3 || oSelection.anchorNode.tagName == 'LI' ) 
    3233        { 
    3334                var oParent = FCKTools.GetElementAscensor( oSelection.anchorNode, 'TD,TH' ) ; 
    3435 
© 2003 – 2011 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy