Changeset 981 for trunk/plugins


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

#1155 InsertAnchor? broken in IE 7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.