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:
parent
2c793ee418
commit
2745b03b71
@ -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
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user