Ticket #3345: 3345.patch
File 3345.patch, 617 bytes (added by , 15 years ago) |
---|
-
_source/plugins/link/dialogs/link.js
1000 1000 ranges = selection.getRanges(), 1001 1001 element = null, 1002 1002 me = this; 1003 1004 1003 // Fill in all the relevant fields if there's already one link selected. 1005 1004 if ( ranges.length == 1 ) 1006 1005 { 1007 ranges[0].enlarge( CKEDITOR.ENLARGE_ELEMENT );1008 1006 1009 1007 var rangeRoot = ranges[0].getCommonAncestor( true ); 1010 1008 element = rangeRoot.getAscendant( 'a', true );