fix options.parent.markdown bug

pull/510/head
WittBulter 7 years ago
parent 0dc77f738b
commit 19c09e4a40

File diff suppressed because one or more lines are too long

@ -16875,7 +16875,7 @@ var SimpleMDE = function (_Action) {
if (!options.previewRender) { if (!options.previewRender) {
// Note: "this" refers to the options object // Note: "this" refers to the options object
options.previewRender = function (plainText) { options.previewRender = function (plainText) {
return _this.parent.markdown(plainText); return options.parent.markdown(plainText);
}; };
} }

File diff suppressed because one or more lines are too long

@ -140,7 +140,7 @@ class SimpleMDE extends Action {
// Add default preview rendering function // Add default preview rendering function
if(!options.previewRender) { if(!options.previewRender) {
// Note: "this" refers to the options object // Note: "this" refers to the options object
options.previewRender = plainText => this.parent.markdown(plainText) options.previewRender = plainText => options.parent.markdown(plainText)
} }
// Set default options for parsing config // Set default options for parsing config

Loading…
Cancel
Save