From: Alan Knowles Date: Tue, 5 Jan 2021 09:17:37 +0000 (+0800) Subject: Roo/bootstrap/Markdown.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=fd943139fe0a8503f356aa5daad6a5b8e67fec26 Roo/bootstrap/Markdown.js --- diff --git a/Roo/bootstrap/Markdown.js b/Roo/bootstrap/Markdown.js index 9fe8054e21..8136ed4fa0 100644 --- a/Roo/bootstrap/Markdown.js +++ b/Roo/bootstrap/Markdown.js @@ -30,6 +30,10 @@ Roo.extend(Roo.bootstrap.Markdown, Roo.bootstrap.TextArea, { cls : 'roo-markdown-area' }); this.inputEl().addClass('d-none'); + var v = this.getValue(); + if (v === false) { + v = ''; + } this.markdownEl.dom.innerHTML = Roo.Markdown.toHtml(Roo.util.Format.htmlEncode(this.getValue())); this.markdownEl.on('click', this.toggleTextEdit, this); this.on('blur', this.toggleTextEdit, this);