Ticket #8361: 8361.patch
File 8361.patch, 1.0 KB (added by , 13 years ago) |
---|
-
_source/plugins/link/dialogs/link.js
1331 1331 // Browser need the "href" fro copy/paste link to work. (#6641) 1332 1332 attributes.href = attributes[ 'data-cke-saved-href' ]; 1333 1333 1334 // Create element if current selection is collapsed. 1335 var selection = editor.getSelection(); 1336 1334 1337 if ( !this._.selectedElement ) 1335 1338 { 1336 // Create element if current selection is collapsed. 1337 var selection = editor.getSelection(), 1338 ranges = selection.getRanges( true ); 1339 var ranges = selection.getRanges( true ); 1339 1340 if ( ranges.length == 1 && ranges[0].collapsed ) 1340 1341 { 1341 1342 // Short mailto link text view (#5736). … … 1372 1373 data.email.address : attributes[ 'data-cke-saved-href' ] ); 1373 1374 } 1374 1375 1376 selection.selectElement( element ); 1375 1377 delete this._.selectedElement; 1376 1378 } 1377 1379 },