pull/223/head
Nick Denry 4 years ago
parent 55312d8ec3
commit 8b177f9c05

@ -2745,15 +2745,15 @@ EasyMDE.prototype.toTextArea = function () {
var wrapper = cm.getWrapperElement();
var easyMDEContainer = wrapper.parentNode;
if (wrapper.parentNode) {
if (easyMDEContainer) {
if (this.gui.toolbar) {
wrapper.parentNode.removeChild(this.gui.toolbar);
easyMDEContainer.removeChild(this.gui.toolbar);
}
if (this.gui.statusbar) {
wrapper.parentNode.removeChild(this.gui.statusbar);
easyMDEContainer.removeChild(this.gui.statusbar);
}
if (this.gui.sideBySide) {
wrapper.parentNode.removeChild(this.gui.sideBySide);
easyMDEContainer.removeChild(this.gui.sideBySide);
}
}

Loading…
Cancel
Save