Changeset 652
- Timestamp:
- 04/03/10 22:13:16 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wymeditor/jquery.wymeditor.js
r648 r652 1464 1464 var sUrl = jQuery(wym._options.hrefSelector).val(); 1465 1465 if(sUrl.length > 0) { 1466 1467 wym._exec(WYMeditor.CREATE_LINK, sStamp); 1468 1469 jQuery("a[href=" + sStamp + "]", wym._doc.body) 1470 .attr(WYMeditor.HREF, sUrl) 1466 var link; 1467 1468 if (selected[0] && selected[0].tagName.toLowerCase() == WYMeditor.A) { 1469 link = selected; 1470 } else { 1471 wym._exec(WYMeditor.CREATE_LINK, sStamp); 1472 link = jQuery("a[href=" + sStamp + "]", wym._doc.body); 1473 } 1474 1475 link.attr(WYMeditor.HREF, sUrl) 1471 1476 .attr(WYMeditor.TITLE, jQuery(wym._options.titleSelector).val()); 1472 1477
Note: See TracChangeset
for help on using the changeset viewer.