From 2ce21ad96178868bbaf5c35a413aeaf2028dac0a Mon Sep 17 00:00:00 2001 From: julmis Date: Sat, 15 Jan 2005 18:50:38 +0000 Subject: [PATCH] Bug fix for Bug #2222 --- lib/editor/htmlarea.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/editor/htmlarea.php b/lib/editor/htmlarea.php index ebee517630..d6e172c4de 100644 --- a/lib/editor/htmlarea.php +++ b/lib/editor/htmlarea.php @@ -174,6 +174,7 @@ HTMLArea.Config = function () { }; this.formatblock = { + "":"", " 1": "h1", " 2": "h2", " 3": "h3", @@ -662,7 +663,8 @@ HTMLArea.prototype.generate = function () { html += '\n"; html += "\n"; html += '\n'; - html += editor._textArea.value; + // See bug #2222 + html += (editor._textArea.value != null && editor._textArea.value != '') ? editor._textArea.value : '

 

'; html += "\n"; html += ""; } else { -- 2.39.5