- Timestamp:
- 07/19/05 04:05:40 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/htmlarea.js
r272 r275 4069 4069 html = html.replace(/<(\/?)b(\s|>|\/)/ig, "<$1strong$2"); 4070 4070 html = html.replace(/<(\/?)i(\s|>|\/)/ig, "<$1em$2"); 4071 4071 html = html.replace(/<(\/?)strike(\s|>|\/)/ig, "<$1del$2"); 4072 4072 4073 // replace window.open to that any clicks won't open a popup in designMode 4073 4074 html = html.replace("onclick=\"try{if(document.designMode && document.designMode == 'on') return false;}catch(e){} window.open(", "onclick=\"window.open("); … … 4111 4112 html = html.replace(/<(\/?)strong(\s|>|\/)/ig, "<$1b$2"); 4112 4113 html = html.replace(/<(\/?)em(\s|>|\/)/ig, "<$1i$2"); 4114 html = html.replace(/<(\/?)strike(\s|>|\/)/ig, "<$1del$2"); 4113 4115 } 4114 4116 … … 4545 4547 } 4546 4548 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 ";4549 HTMLArea._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 "; 4548 4550 HTMLArea.needsClosingTag = function(el) { 4549 4551 return el && el.nodeType == 1 && (HTMLArea._closingTags.indexOf(" " + el.tagName.toLowerCase() + " ") != -1);
Note: See TracChangeset
for help on using the changeset viewer.