mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2025-09-24 16:40:55 -06: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) {
|
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);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
// 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…
x
Reference in New Issue
Block a user