Ticket #4273: fcktablehandler_gecko.js-select-bug-2.patch
File fcktablehandler_gecko.js-select-bug-2.patch, 740 bytes (added by , 15 years ago) |
---|
-
editor/_source/internals/fcktablehandler_gecko.js
old new 37 37 38 38 return aCells ; 39 39 } 40 41 // Keep the original anchorNode in case no child TD/TH found 42 var anchorNode = oSelection.anchorNode ; 40 43 41 44 for ( var i = 0 ; i < oSelection.rangeCount ; i++ ) 42 45 { … … 52 55 aCells[aCells.length] = oCell ; 53 56 } 54 57 58 // We didn't find any child TD/TH, so look up for the nearest one. 59 if ( aCells.length == 0 ) { 60 var oParent = FCKTools.GetElementAscensor( anchorNode, 'TD,TH' ) ; 61 if ( oParent ) 62 aCells[0] = oParent ; 63 } 64 55 65 return aCells ; 56 66 }