|
|
@@ -57,7 +57,7 @@ |
|
|
|
</head> |
|
|
|
<body> |
|
|
|
<div class="toolbar"> |
|
|
|
<!--<button id="btnSave" onClick="save()" class="btn btn_g">save</button>--> |
|
|
|
<button id="btnSave" onClick="save()" class="btn btn_g">⇩</button> |
|
|
|
<button id="btnUndo" onClick="editor.undo()" class="btn">↶</button> |
|
|
|
<button id="btnRedo" onClick="editor.redo()" class="btn btn_g">↷</button> |
|
|
|
<button id="btnFs" onclick="toggleFullscreen()" class="btn">◻</button> |
|
|
@@ -85,7 +85,7 @@ |
|
|
|
document.getElementById("btnUndo").disabled = !editor.session.getUndoManager().hasUndo(); |
|
|
|
document.getElementById("btnRedo").disabled = !editor.session.getUndoManager().hasRedo(); |
|
|
|
if (!window.fullscreen) { |
|
|
|
document.getElementById("btnFs").style.display = "block"; |
|
|
|
document.getElementById("btnFs").style.display = "compact"; |
|
|
|
} |
|
|
|
} |
|
|
|
editor.on("input", updateToolbar); |
|
|
|