2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-23 09:54:28 -06:00

move line to another section ,rollback unneded change

This commit is contained in:
Ivan Borshchov 2020-09-10 13:32:56 +03:00
parent 2c793ee418
commit 2745b03b71
2 changed files with 3 additions and 4 deletions

View File

@ -73,8 +73,6 @@ var easyMDE = new EasyMDE();
</script>
```
If you need to remove installed listeners (when editor not needed anymore), call `easyMDE.cleanup()`
Alternatively you can select a specific TextArea, via Javascript:
```html
@ -474,6 +472,8 @@ easyMDE.toTextArea();
easyMDE = null;
```
If you need to remove installed listeners (when editor not needed anymore), call `easyMDE.cleanup()`
### Useful methods

View File

@ -2049,8 +2049,7 @@ EasyMDE.prototype.render = function (el) {
if (options.status !== false) {
this.gui.statusbar = this.createStatusbar();
}
var autosaveEnabled = options.autosave != undefined && options.autosave.enabled === true;
if (autosaveEnabled) {
if (options.autosave != undefined && options.autosave.enabled === true) {
this.autosave(); // use to load localstorage content
this.codemirror.on('change', function () {
clearTimeout(self._autosave_timeout);