EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
Expected behavior
Text area to be successfully restored and EasyMDE disposed.
Version information
OS: all
Browser: Edge 84
EasyMDE version: 2.11.0
Additional context
Issue does not occur in 2.10.1, only started occuring in 2.11.0
Seems to be related to changing the DOM hierarchy by adding another container div which causes issues with the underlying CodeMirror toTextArea() function code.
Describe the bug Calling
toTextArea()
results in an exception:To Reproduce Steps to reproduce the behavior:
toTextArea()
function on an instance of EasyMDE.https://stackblitz.com/edit/js-r8f7lh
Expected behavior Text area to be successfully restored and EasyMDE disposed.
Version information
Additional context Issue does not occur in 2.10.1, only started occuring in 2.11.0 Seems to be related to changing the DOM hierarchy by adding another container div which causes issues with the underlying CodeMirror
toTextArea()
function code.