mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-09 09:22:16 +02:00
function domain of optimization function
This commit is contained in:
parent
3cb8fa13b3
commit
4c7bae0caf
File diff suppressed because one or more lines are too long
|
@ -16987,12 +16987,9 @@ var SimpleMDE = function (_Action) {
|
|||
});
|
||||
|
||||
if (options.forceSync === true) {
|
||||
(function () {
|
||||
var cm = _this2.codemirror;
|
||||
cm.on("change", function () {
|
||||
return cm.save();
|
||||
});
|
||||
})();
|
||||
this.codemirror.on("change", function () {
|
||||
return _this2.codemirror.save();
|
||||
});
|
||||
}
|
||||
|
||||
this.gui = {};
|
||||
|
@ -17011,10 +17008,9 @@ var SimpleMDE = function (_Action) {
|
|||
this._rendered = this.element;
|
||||
|
||||
// Fixes CodeMirror bug (#344)
|
||||
var temp_cm = this.codemirror;
|
||||
setTimeout(function () {
|
||||
temp_cm.refresh();
|
||||
}.bind(temp_cm), 0);
|
||||
_this2.codemirror.refresh();
|
||||
}, 0);
|
||||
}
|
||||
}, {
|
||||
key: 'autosave',
|
||||
|
|
2
dist/simplemde.min.js
vendored
2
dist/simplemde.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -227,8 +227,7 @@ class SimpleMDE extends Action {
|
|||
});
|
||||
|
||||
if(options.forceSync === true) {
|
||||
const cm = this.codemirror;
|
||||
cm.on("change", () => cm.save());
|
||||
this.codemirror.on("change", () => this.codemirror.save());
|
||||
}
|
||||
|
||||
this.gui = {};
|
||||
|
@ -247,10 +246,9 @@ class SimpleMDE extends Action {
|
|||
this._rendered = this.element;
|
||||
|
||||
// Fixes CodeMirror bug (#344)
|
||||
const temp_cm = this.codemirror;
|
||||
setTimeout(function() {
|
||||
temp_cm.refresh();
|
||||
}.bind(temp_cm), 0);
|
||||
setTimeout(() => {
|
||||
this.codemirror.refresh();
|
||||
}, 0);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue