From 44968276c10bd996ab1a62aa5294b84cf16f9513 Mon Sep 17 00:00:00 2001 From: anthonyforth Date: Fri, 8 Jun 2007 09:19:41 +0000 Subject: [PATCH] Fix for MDL-9942 --- lib/editor/htmlarea/htmlarea.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/editor/htmlarea/htmlarea.php b/lib/editor/htmlarea/htmlarea.php index 921c33914b..d91c05bbeb 100644 --- a/lib/editor/htmlarea/htmlarea.php +++ b/lib/editor/htmlarea/htmlarea.php @@ -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": -- 2.39.5