Changeset 275 for trunk


Ignore:
Timestamp:
07/19/05 04:05:40 (14 years ago)
Author:
gogo
Message:

Apply #356

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r272 r275  
    40694069  html = html.replace(/<(\/?)b(\s|>|\/)/ig, "<$1strong$2"); 
    40704070  html = html.replace(/<(\/?)i(\s|>|\/)/ig, "<$1em$2"); 
    4071  
     4071  html = html.replace(/<(\/?)strike(\s|>|\/)/ig, "<$1del$2"); 
     4072   
    40724073  // replace window.open to that any clicks won't open a popup in designMode 
    40734074  html = html.replace("onclick=\"try{if(document.designMode &amp;&amp; document.designMode == 'on') return false;}catch(e){} window.open(", "onclick=\"window.open("); 
     
    41114112    html = html.replace(/<(\/?)strong(\s|>|\/)/ig, "<$1b$2"); 
    41124113    html = html.replace(/<(\/?)em(\s|>|\/)/ig, "<$1i$2"); 
     4114    html = html.replace(/<(\/?)strike(\s|>|\/)/ig, "<$1del$2"); 
    41134115  } 
    41144116 
     
    45454547} 
    45464548 
    4547 HTMLArea._closingTags = " head script style div span tr td tbody table em strong b i code cite dfn abbr acronym font a title textarea select form "; 
     4549HTMLArea._closingTags = " head script style div span tr td tbody table em strong b i strike code cite dfn abbr acronym font a title textarea select form "; 
    45484550HTMLArea.needsClosingTag = function(el) { 
    45494551  return el && el.nodeType == 1 && (HTMLArea._closingTags.indexOf(" " + el.tagName.toLowerCase() + " ") != -1); 
Note: See TracChangeset for help on using the changeset viewer.