fix options.parent.markdown bug

This commit is contained in:
WittBulter 2017-01-17 17:24:23 +08:00
parent 0dc77f738b
commit 19c09e4a40
4 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View file

@ -16875,7 +16875,7 @@ var SimpleMDE = function (_Action) {
if (!options.previewRender) {
// Note: "this" refers to the options object
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

View file

@ -140,7 +140,7 @@ class SimpleMDE extends Action {
// Add default preview rendering function
if(!options.previewRender) {
// 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