mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-06-28 05:31:06 -06:00
Merge pull request #272 from joahim/master
Fix the sideBySideFullscreen=false + status=false bug
This commit is contained in:
commit
6306b96cf7
@ -883,9 +883,11 @@ function toggleSideBySide(editor) {
|
||||
}
|
||||
|
||||
function removeNoFullscreenClass(el) {
|
||||
el.className = el.className.replace(
|
||||
/\s*sided--no-fullscreen\s*/g, ''
|
||||
);
|
||||
if (el != null) {
|
||||
el.className = el.className.replace(
|
||||
/\s*sided--no-fullscreen\s*/g, ''
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (/editor-preview-active-side/.test(preview.className)) {
|
||||
@ -909,7 +911,9 @@ function toggleSideBySide(editor) {
|
||||
if (editor.options.sideBySideFullscreen === false) {
|
||||
cm.setOption('sideBySideNoFullscreen', true);
|
||||
noFullscreenItems.forEach(function(el) {
|
||||
addNoFullscreenClass(el);
|
||||
if (el != null) {
|
||||
addNoFullscreenClass(el);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
toggleFullScreen(editor);
|
||||
@ -2142,7 +2146,7 @@ EasyMDE.prototype.render = function (el) {
|
||||
assignImageBlockAttributes(parentEl, window.EMDEimagesCache[keySrc]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
this.codemirror.on('update', function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user