|
|
@@ -84,10 +84,8 @@ |
|
|
|
function updateToolbar() { |
|
|
|
document.getElementById("btnUndo").disabled = !editor.session.getUndoManager().hasUndo(); |
|
|
|
document.getElementById("btnRedo").disabled = !editor.session.getUndoManager().hasRedo(); |
|
|
|
if (window.fullscreen) { |
|
|
|
document.getElementById("btnFs").style.display = "none"; |
|
|
|
} else { |
|
|
|
document.getElementById("btnFs").style.display = "block"; |
|
|
|
if (!window.fullscreen) { |
|
|
|
document.getElementById("btnFs").style.display = "block"; |
|
|
|
} |
|
|
|
} |
|
|
|
editor.on("input", updateToolbar); |
|
|
@@ -126,6 +124,7 @@ |
|
|
|
} else if (elem.msRequestFullscreen) { /* IE/Edge */ |
|
|
|
elem.msRequestFullscreen(); |
|
|
|
} |
|
|
|
document.getElementById("btnFs").style.display = "none"; |
|
|
|
} |
|
|
|
else { |
|
|
|
if (document.exitFullscreen) { |
|
|
|