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