Changeset 126
- Timestamp:
- 05/09/05 08:30:58 (8 years ago)
- Location:
- trunk/plugins/InsertAnchor
- Files:
-
- 2 modified
-
insert-anchor.css (modified) (1 diff)
-
insert-anchor.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/InsertAnchor/insert-anchor.css
r25 r126 2 2 width: 18px; 3 3 height: 18px; 4 background: url(img/insert-anchor.gif) no-repeat; 4 background-image: url(img/insert-anchor.gif); 5 background-repeat: no-repeat; 6 background-position: left top; 7 padding-left: 19px; 5 8 border: 1px dotted blue; 6 9 } 7 8 /* For Gecko browsers we need the following code to make anchor visible */9 a.anchor:before { content:url(img/placeholder.gif); } -
trunk/plugins/InsertAnchor/insert-anchor.js
r125 r126 63 63 InsertAnchor.prototype.buttonPress = function(editor) { 64 64 var outparam = null; 65 var html = editor.getSelectedHTML(); 65 66 var sel = editor._getSelection(); 66 67 var range = editor._createRange(sel); … … 69 70 a = editor._getFirstAncestor(sel, 'a'); 70 71 } 71 if (a != null && a.tagName.toLowerCase() == 'a') {72 if (a != null && a.tagName.toLowerCase() == 'a') 72 73 outparam = { name : a.id }; 73 }else74 else 74 75 outparam = { name : '' }; 75 76 … … 94 95 a.title = anchor; 95 96 a.className = "anchor"; 96 a.innerHTML = sel;97 a.innerHTML = html; 97 98 if (HTMLArea.is_ie) { 98 99 range.pasteHTML(a.outerHTML);
