2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-02 23:54:28 -06:00

Fix toggleFullscreen() if icon is hidden

This commit is contained in:
Luca Zeug 2017-02-22 20:37:52 +01:00
parent 5b8611628b
commit 18f8256a4a

View File

@ -211,6 +211,7 @@ function toggleFullScreen(editor) {
// Update toolbar button // Update toolbar button
if (editor.toolbarElements.fullscreen) {
var toolbarButton = editor.toolbarElements.fullscreen; var toolbarButton = editor.toolbarElements.fullscreen;
if(!/active/.test(toolbarButton.className)) { if(!/active/.test(toolbarButton.className)) {
@ -218,6 +219,7 @@ function toggleFullScreen(editor) {
} else { } else {
toolbarButton.className = toolbarButton.className.replace(/\s*active\s*/g, ""); toolbarButton.className = toolbarButton.className.replace(/\s*active\s*/g, "");
} }
}
// Hide side by side if needed // Hide side by side if needed