mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-09 09:22:16 +02:00
fix options.parent.markdown bug
This commit is contained in:
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) {
|
||||
// Note: "this" refers to the options object
|
||||
options.previewRender = function (plainText) {
|
||||
return _this.parent.markdown(plainText);
|
||||
return options.parent.markdown(plainText);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
2
dist/simplemde.min.js
vendored
2
dist/simplemde.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue