version 1.4, 2004/06/02 00:55:16
|
version 1.6, 2006/07/27 22:27:22
|
Line 922 HTMLArea.loadStyle = function(style, plu
|
Line 922 HTMLArea.loadStyle = function(style, plu
|
url += style; |
url += style; |
document.write("<style type='text/css'>@import url(" + url + ");</style>"); |
document.write("<style type='text/css'>@import url(" + url + ");</style>"); |
}; |
}; |
HTMLArea.loadStyle("htmlarea.css"); |
//HTMLArea.loadStyle("htmlarea.css"); |
|
|
/*************************************************** |
/*************************************************** |
* Category: EDITOR UTILITIES |
* Category: EDITOR UTILITIES |
Line 2038 HTMLArea.getHTML = function(root, output
|
Line 2038 HTMLArea.getHTML = function(root, output
|
case 3: // Node.TEXT_NODE |
case 3: // Node.TEXT_NODE |
// If a text node is alone in an element and all spaces, replace it with an non breaking one |
// 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 |
// 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); |
else html = HTMLArea.htmlEncode(root.data); |
break; |
break; |
case 8: // Node.COMMENT_NODE |
case 8: // Node.COMMENT_NODE |