projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f0dcde6
)
Roo/bootstrap/Markdown.js
author
Alan Knowles
<alan@roojs.com>
Tue, 5 Jan 2021 09:17:37 +0000
(17:17 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 5 Jan 2021 09:17:37 +0000
(17:17 +0800)
Roo/bootstrap/Markdown.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Markdown.js
b/Roo/bootstrap/Markdown.js
index
9fe8054
..
8136ed4
100644
(file)
--- 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');
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);
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);