Changeset 502
- Timestamp:
- 04/30/06 22:49:36 (7 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
htmlarea.js (modified) (1 diff)
-
plugins/GetHtml/get-html.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htmlarea.js
r500 r502 5159 5159 if ( typeof this.config.stripSelfNamedAnchors != 'undefined' && this.config.stripSelfNamedAnchors ) 5160 5160 { 5161 var stripRe = new RegExp(document.location.href.replace( HTMLArea.RE_Specials, '\\$1') + '(#[^\'" ]*)', 'g');5161 var stripRe = new RegExp(document.location.href.replace(/&/g,'&').replace(HTMLArea.RE_Specials, '\\$1') + '(#[^\'" ]*)', 'g'); 5162 5162 html = html.replace(stripRe, '$1'); 5163 5163 } -
trunk/plugins/GetHtml/get-html.js
r478 r502 195 195 }; 196 196 197 //fix obscure case; stripSelfNamedAnchors fails in IE if location.href includes a query string with '&' in it198 HTMLArea.prototype._origFixRelativeLinks = HTMLArea.prototype.fixRelativeLinks;199 HTMLArea.prototype.fixRelativeLinks = function(html)200 {201 if(typeof this.config.stripSelfNamedAnchors != 'undefined' && this.config.stripSelfNamedAnchors)202 {203 var stripRe = new RegExp(document.location.href.replace(/&/g,'&').replace(HTMLArea.RE_Specials, '\\$1') + '(#[^\'" ]*)', 'g');204 html = html.replace(stripRe, '$1');205 }206 html = this._origFixRelativeLinks(html);207 return html;208 };209 210 197 //override (hack) outwardHtml() to handle onclick suppression 211 198 HTMLArea.prototype._origOutwardHtml = HTMLArea.prototype.outwardHtml;
