--- loncom/html/htmlarea/Attic/htmlarea.js 2004/06/01 23:46:10 1.3
+++ 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.3 2004/06/01 23:46:10 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
@@ -1816,13 +1816,13 @@ HTMLArea.cloneObject = function(obj) {
HTMLArea.checkSupportedBrowser = function() {
if (HTMLArea.is_gecko) {
if (navigator.productSub < 20021201) {
- alert("You need at least Mozilla-1.3 Alpha.\n" +
- "Sorry, your Gecko is not supported.");
+ window.status="WYSIWYG Editor: You need at least Mozilla-1.3 Alpha. " +
+ "Sorry, your Gecko is not supported.";
return false;
}
if (navigator.productSub < 20030210) {
- alert("Mozilla < 1.3 Beta is not supported!\n" +
- "I'll try, though, but it might not work.");
+ window.status="WYSIWYG Editor: Mozilla < 1.3 Beta is not supported! " +
+ "I'll try, though, but it might not work.";
}
}
return HTMLArea.is_gecko || HTMLArea.is_ie;
@@ -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