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

View File

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