]> git.mjollnir.org Git - moodle.git/commitdiff
Fix for MDL-9942
authoranthonyforth <anthonyforth>
Fri, 8 Jun 2007 09:19:41 +0000 (09:19 +0000)
committeranthonyforth <anthonyforth>
Fri, 8 Jun 2007 09:19:41 +0000 (09:19 +0000)
lib/editor/htmlarea/htmlarea.php

index 921c33914b409d70c9d00c785c4666535ceb153e..d91c05bbeb13a20da65e916a09df67ac39c8fb91 100644 (file)
@@ -875,7 +875,11 @@ HTMLArea.prototype.setMode = function(mode) {
         this._iframe.style.display = "none";
         this._textArea.style.display = "block";
         if (this.config.statusBar) {
-            this._statusBar.innerHTML = HTMLArea.I18N.msg["TEXT_MODE"];
+            while(this._statusBar.childNodes.length>0) {
+                this._statusBar.removeChild(this._statusBar.childNodes[0]);
+            }
+
+            this._statusBar.appendChild(document.createTextNode(HTMLArea.I18N.msg["TEXT_MODE"]));
         }
         break;
         case "wysiwyg":