Changeset 1350
- Timestamp:
- 02/04/18 00:25:44 (23 months ago)
- Location:
- trunk/plugins/InsertAnchor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/InsertAnchor/InsertAnchor.js
r1315 r1350 4 4 var self = this; 5 5 6 this.placeholderImg = '<img class="IA_placeholder" src="'+Xinha.getPluginDir("InsertAnchor")+'/img/ placeholder.gif" />';6 this.placeholderImg = '<img class="IA_placeholder" src="'+Xinha.getPluginDir("InsertAnchor")+'/img/insert-anchor.gif" />'; 7 7 8 8 // register the toolbar buttons provided by this plugin … … 83 83 return; 84 84 } 85 85 86 var editor = this.editor; 86 87 this.selectedHTML = editor.getSelectedHTML(); … … 94 95 } 95 96 97 this.dialog.getElementById('warning').style.display = 'none'; 98 96 99 if (this.a != null && this.a.tagName.toLowerCase() == 'a') 97 100 { … … 100 103 else 101 104 { 105 if(!this.editor.selectionEmpty(sel)) 106 { 107 this.dialog.getElementById('warning').style.display = ''; 108 } 102 109 inputs = { name : '' }; 103 110 } … … 136 143 a.className = "anchor"; 137 144 a.innerHTML = self.placeholderImg; 138 var html = editor.getSelectedHTML();139 if (html) a.innerHTML += html;145 // var html = editor.getSelectedHTML(); 146 // if (html) a.innerHTML += html; 140 147 if (Xinha.is_ie) 141 148 { -
trunk/plugins/InsertAnchor/dialog.html
r1044 r1350 9 9 10 10 </div> 11 12 <div style="margin: 10px;" id="[warning]"> 13 <strong>Selected content may be replaced by the new anchor. Inserting an anchor is like inserting an image, you don't need to select anything.</strong> 14 </div> 15 11 16 <div class="buttons"> 12 17 <input type="button" id="[ok]" value="_(OK)" /> -
trunk/plugins/InsertAnchor/insert-anchor.css
r977 r1350 2 2 width: 18px; 3 3 height: 18px; 4 /* 4 5 background-image: url(img/insert-anchor.gif); 5 6 background-repeat: no-repeat; 6 7 background-position: left top; 7 8 border: 1px dotted blue; 9 */ 8 10 }
Note: See TracChangeset
for help on using the changeset viewer.