Closed hsalem7 closed 3 years ago
If there is a place where we are conditionally showing the editor, then it is better to have a destruct method.
var simplemde = new SimpleMDE({ element: document.getElementById("MyID") });
And when there is a need to hide/remove the editor:
simplemde.destruct();
It should remove all the elements that were added because of the construct method.
If there is a place where we are conditionally showing the editor, then it is better to have a destruct method.
And when there is a need to hide/remove the editor:
It should remove all the elements that were added because of the construct method.