Fix toggleFullscreen() if icon is hidden

patch-ionaru
Luca Zeug 7 years ago
parent 5b8611628b
commit 18f8256a4a

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

Loading…
Cancel
Save