Index: openacs-4/packages/acs-templating/www/resources/xinha-nightly/htmlarea.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/resources/xinha-nightly/htmlarea.js,v diff -u -r1.4 -r1.4.2.1 --- openacs-4/packages/acs-templating/www/resources/xinha-nightly/htmlarea.js 4 Jun 2006 00:45:49 -0000 1.4 +++ openacs-4/packages/acs-templating/www/resources/xinha-nightly/htmlarea.js 31 Jan 2007 17:25:58 -0000 1.4.2.1 @@ -1871,7 +1871,8 @@ HTMLArea.freeLater(this, '_doc'); - doc.open(); + doc.open("text/html","replace"); + if (!editor.config.fullPage) { var html = "\n"; html += "\n"; @@ -2012,7 +2013,8 @@ if(reac) this.deactivateEditor(); var html_re = /((.|\n)*?)<\/html>/i; html = html.replace(html_re, "$1"); - this._doc.open(); + this._doc.open("text/html","replace"); + this._doc.write(html); this._doc.close(); if(reac) this.activateEditor();