mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-23 01:44:31 -06:00
More defensive coding for #91
This commit is contained in:
parent
e6ab126431
commit
1762dea647
@ -791,7 +791,7 @@ SimpleMDE.toolbar = toolbar;
|
||||
SimpleMDE.prototype.markdown = function(text) {
|
||||
if(window.marked) {
|
||||
// Update options
|
||||
if(this.options.singleLineBreaks !== false) {
|
||||
if(this.options && this.options.singleLineBreaks !== false) {
|
||||
marked.setOptions({
|
||||
breaks: true
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user