From: Alan Knowles Date: Thu, 19 Nov 2020 08:36:31 +0000 (+0800) Subject: Roo/bootstrap/Markdown.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=74c9fdc0d3e110b3ae3ee805c85c3868b3a801b5 Roo/bootstrap/Markdown.js --- diff --git a/Roo/bootstrap/Markdown.js b/Roo/bootstrap/Markdown.js index d1f23fd806..513cdad610 100644 --- a/Roo/bootstrap/Markdown.js +++ b/Roo/bootstrap/Markdown.js @@ -59,9 +59,8 @@ Roo.extend(Roo.bootstrap.Markdown, Roo.bootstrap.TextArea, { }, updateMarkdown : function() { - this.markdownEl.dom.innerHTML = Roo.Markdown.toHtml(Roo.util.Format.htmlEncode(this.getValue())); - - } + this.markdownEl.dom.innerHTML = Roo.Markdown.toHtml(Roo.util.Format.htmlEncode(this.getValue())); + }, resizeTextArea: function () { @@ -73,7 +72,7 @@ Roo.extend(Roo.bootstrap.Markdown, Roo.bootstrap.TextArea, { { Roo.bootstrap.TextArea.prototype.setValue(val); if (!this.editing) { - + this.updateMarkdown(); } }