Nick Denry 4 years ago committed by GitHub
parent 754bdc3ab2
commit 55312d8ec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2743,6 +2743,7 @@ EasyMDE.prototype.getState = function () {
EasyMDE.prototype.toTextArea = function () {
var cm = this.codemirror;
var wrapper = cm.getWrapperElement();
var easyMDEContainer = wrapper.parentNode;
if (wrapper.parentNode) {
if (this.gui.toolbar) {
@ -2756,6 +2757,10 @@ EasyMDE.prototype.toTextArea = function () {
}
}
// Unwrap easyMDEcontainer before codemirror toTextArea() call
easyMDEContainer.parentNode.insertBefore(wrapper, easyMDEContainer);
easyMDEContainer.remove();
cm.toTextArea();
if (this.autosaveTimeoutId) {

Loading…
Cancel
Save