Changeset 5880
- Timestamp:
- 09/14/10 16:16:29 (3 years ago)
- Location:
- CKEditor/trunk
- Files:
-
- 2 edited
-
CHANGES.html (modified) (1 diff)
-
_source/plugins/link/plugin.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/CHANGES.html
r5879 r5880 82 82 <li><a href="http://dev.ckeditor.com/ticket/5218">#5218</a> : [FF] Copy/paste of an image from same domain changed URL to relative URL.</li> 83 83 <li><a href="http://dev.ckeditor.com/ticket/6265">#6265</a> : Popup window properties were visible in the link dialog's target tab when nothing was selected.</li> 84 <li><a href="http://dev.ckeditor.com/ticket/6075">#6075</a> : [FF] Newly created links didn't fill in information on edit.</li> 84 85 <li>Updated the following language files:<ul> 85 86 <li><a href="http://dev.ckeditor.com/ticket/6246">#6246</a> : Chinese Simplified;</li> -
CKEditor/trunk/_source/plugins/link/plugin.js
r5812 r5880 177 177 getSelectedLink : function( editor ) 178 178 { 179 var range;180 179 try 181 180 { 182 range = editor.getSelection().getRanges( true )[ 0 ]; 181 var selection = editor.getSelection(); 182 if ( selection.getType() == CKEDITOR.SELECTION_ELEMENT ) 183 { 184 var selectedElement = selection.getSelectedElement(); 185 if ( selectedElement.is( 'a' ) ) 186 return selectedElement; 187 } 188 189 var range = selection.getRanges( true )[ 0 ]; 183 190 range.shrink( CKEDITOR.SHRINK_TEXT ); 184 191 var root = range.getCommonAncestor();
Note: See TracChangeset
for help on using the changeset viewer.
