Ionaru / Ionaru/easy-markdown-editor

[Feature Request] Add the ability to destruct the editor

Open
#341 5 comments 0 reactions 0 assignees View on GitHub
Improvement
Dominant language
JavaScript
Stars
3.1k
Forks
363
PR merge metrics
No merged PRs in 30d

Description

If there is a place where we are conditionally showing the editor, then it is better to have a destruct method.

```javascript
var simplemde = new SimpleMDE({ element: document.getElementById("MyID") });
```

And when there is a need to hide/remove the editor:
```javascript
simplemde.destruct();
```

It should remove all the elements that were added because of the construct method.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.