Roo/bootstrap/Markdown.js
[roojs1] / 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);