Changeset 981
- Timestamp:
- 03/21/08 18:29:43 (5 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
modules/Gecko/Gecko.js (modified) (1 diff)
-
plugins/InsertAnchor/insert-anchor.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/Gecko/Gecko.js
r963 r981 596 596 var sel = this.getSelection(); 597 597 range = this._doc.createRange(); 598 if ( !node ) 599 { 600 sel.removeAllRanges(); 601 return; 602 } 598 603 // Tables and Images get selected as "objects" rather than the text contents 599 604 if ( collapsed && node.tagName && node.tagName.toLowerCase().match(/table|img|input|textarea|select/) ) -
trunk/plugins/InsertAnchor/insert-anchor.js
r977 r981 47 47 InsertAnchor.prototype.outwardHtml = function(html) 48 48 { 49 html= html.replace(/(<img[^>]*class=" IA_placeholder"[^>]*>)/g,"");49 html= html.replace(/(<img[^>]*class="?IA_placeholder"?[^>]*>)/ig,""); 50 50 return html; 51 51 } … … 71 71 if (anchor == "" || anchor == null) { 72 72 if (a) { 73 var child = a.innerHTML;73 var child = self.outwardHtml(a.innerHTML); 74 74 a.parentNode.removeChild(a); 75 75 editor.insertHTML(child);
