2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-06-28 13:41:01 -06:00

Fix the sideBySideFullscreen=false + status=false bug

This commit is contained in:
Joh Dokler 2020-12-09 11:58:57 +01:00
parent f286a6bae5
commit 2a904b24ab

View File

@ -909,7 +909,9 @@ function toggleSideBySide(editor) {
if (editor.options.sideBySideFullscreen === false) {
cm.setOption('sideBySideNoFullscreen', true);
noFullscreenItems.forEach(function(el) {
addNoFullscreenClass(el);
if (el) {
addNoFullscreenClass(el);
};
});
} else {
toggleFullScreen(editor);
@ -2142,7 +2144,7 @@ EasyMDE.prototype.render = function (el) {
assignImageBlockAttributes(parentEl, window.EMDEimagesCache[keySrc]);
}
}
}
}
});
}
this.codemirror.on('update', function () {