From 2ce17a0d5a4df43f67c6ae8fd04db096540d68bd Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sun, 6 Feb 2005 21:04:10 +0000 Subject: [PATCH] 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. --- lib/editor/htmlarea.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/editor/htmlarea.php b/lib/editor/htmlarea.php index 1bbab7cc9b..cf0429d9bd 100644 --- a/lib/editor/htmlarea.php +++ b/lib/editor/htmlarea.php @@ -665,8 +665,7 @@ HTMLArea.prototype.generate = function () { html += '\n"; html += "\n"; html += '\n'; - // See bug #2222 - html += (editor._textArea.value != null && editor._textArea.value != '') ? editor._textArea.value : '

 

'; + html += editor._textArea.value; html = html.replace(//gi, ''). replace(/<\/nolink>/gi, ''); html += "\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; -- 2.39.5