]> git.mjollnir.org Git - moodle.git/commitdiff
The html editor was inserting a paragraph with just a space in it which clearly creat...
authorgustav_delius <gustav_delius>
Sun, 6 Feb 2005 21:04:10 +0000 (21:04 +0000)
committergustav_delius <gustav_delius>
Sun, 6 Feb 2005 21:04:10 +0000 (21:04 +0000)
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

index 1bbab7cc9b15a329be6fc9f6002bfe72e4d41d98..cf0429d9bda5082b9c6ee5864cfa0f6c448c5064 100644 (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;