From: julmis Date: Sat, 15 Jan 2005 18:50:38 +0000 (+0000) Subject: Bug fix for Bug #2222 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2ce21ad96178868bbaf5c35a413aeaf2028dac0a;p=moodle.git Bug fix for Bug #2222 --- 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 {