The html editor was inserting a paragraph with just a space in it which clearly created problems for fields that the user wanted to leave empty.

There was also a problem when switching to text mode and back again: the status bar showed Path: Path:. I have taken out the second one.
This commit is contained in:
gustav_delius
2005-02-06 21:04:10 +00:00
parent 3f3d62ce91
commit 2ce17a0d5a
+1 -3
View File
@@ -665,8 +665,7 @@ HTMLArea.prototype.generate = function () {
html += '<style type="text/css">\n' + editor.config.pageStyle + "td { border: 1px dotted gray; }</style>\n";
html += "</head>\n";
html += '<body>\n';
// See bug #2222
html += (editor._textArea.value != null && editor._textArea.value != '') ? editor._textArea.value : '<p>&nbsp;</p>';
html += editor._textArea.value;
html = html.replace(/<nolink>/gi, '<span class="nolink">').
replace(/<\/nolink>/gi, '</span>');
html += "</body>\n";
@@ -826,7 +825,6 @@ HTMLArea.prototype.setMode = function(mode) {
}
if (this.config.statusBar) {
this._statusBar.innerHTML = '';
this._statusBar.appendChild(document.createTextNode(HTMLArea.I18N.msg["Path"] + ": "));
this._statusBar.appendChild(this._statusBarTree);
}
break;