Changeset 981


Ignore:
Timestamp:
03/21/08 18:29:43 (11 years ago)
Author:
ray
Message:

#1155 InsertAnchor? broken in IE 7

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/Gecko/Gecko.js

    r963 r981  
    596596  var sel = this.getSelection(); 
    597597  range = this._doc.createRange(); 
     598  if ( !node ) 
     599  { 
     600     sel.removeAllRanges(); 
     601     return; 
     602  } 
    598603  // Tables and Images get selected as "objects" rather than the text contents 
    599604  if ( collapsed && node.tagName && node.tagName.toLowerCase().match(/table|img|input|textarea|select/) ) 
  • trunk/plugins/InsertAnchor/insert-anchor.js

    r977 r981  
    4747InsertAnchor.prototype.outwardHtml = function(html) 
    4848{ 
    49         html= html.replace(/(<img[^>]*class="IA_placeholder"[^>]*>)/g,""); 
     49        html= html.replace(/(<img[^>]*class="?IA_placeholder"?[^>]*>)/ig,""); 
    5050        return html; 
    5151} 
     
    7171      if (anchor == "" || anchor == null) { 
    7272        if (a) { 
    73           var child = a.innerHTML; 
     73          var child = self.outwardHtml(a.innerHTML); 
    7474          a.parentNode.removeChild(a); 
    7575          editor.insertHTML(child); 
Note: See TracChangeset for help on using the changeset viewer.