--- loncom/html/htmlarea/Attic/htmlarea.js 2004/06/02 00:55:16 1.4 +++ loncom/html/htmlarea/Attic/htmlarea.js 2006/07/27 22:27:22 1.6 @@ -9,7 +9,7 @@ // Version 3.0 developed by Mihai Bazon. // http://dynarch.com/mishoo // -// $Id: htmlarea.js,v 1.4 2004/06/02 00:55:16 www Exp $ +// $Id: htmlarea.js,v 1.6 2006/07/27 22:27:22 albertel Exp $ if (typeof _editor_url == "string") { // Leave exactly one backslash at the end of _editor_url @@ -922,7 +922,7 @@ HTMLArea.loadStyle = function(style, plu url += style; document.write(""); }; -HTMLArea.loadStyle("htmlarea.css"); +//HTMLArea.loadStyle("htmlarea.css"); /*************************************************** * Category: EDITOR UTILITIES @@ -2038,7 +2038,8 @@ HTMLArea.getHTML = function(root, output case 3: // Node.TEXT_NODE // If a text node is alone in an element and all spaces, replace it with an non breaking one // This partially undoes the damage done by moz, which translates ' 's into spaces in the data element - if ( !root.previousSibling && !root.nextSibling && root.data.match(/^\s*$/i) ) html = ' '; + // this was   but since are document encodings are all over the place it causes random havoc + if ( !root.previousSibling && !root.nextSibling && root.data.match(/^\s*$/i) ) html = ' '; else html = HTMLArea.htmlEncode(root.data); break; case 8: // Node.COMMENT_NODE