More defensive coding for #91

pull/107/head
Wes Cossick 9 years ago
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…
Cancel
Save