Roo/bootstrap/Markdown.js
authorAlan Knowles <alan@roojs.com>
Tue, 5 Jan 2021 09:17:37 +0000 (17:17 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 5 Jan 2021 09:17:37 +0000 (17:17 +0800)
Roo/bootstrap/Markdown.js

index 9fe8054..8136ed4 100644 (file)
@@ -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);