Browse Source

buttons fix

master
KaiSD 5 years ago
parent
commit
db4a66f7c6
1 changed files with 3 additions and 15 deletions
  1. +3
    -15
      ace/index.html

+ 3
- 15
ace/index.html View File

@@ -23,9 +23,9 @@
</head>
<body>
<div class="toolbar">
<button id="btnSave" class="btn btn-primary btn-xs">save</button>
<button id="btnUndo" class="btn btn-primary btn-xs">undo</button>
<button id="btnRedo" class="btn btn-primary btn-xs">redo</button>
<button id="btnSave" onClick="save()" class="btn btn-primary btn-xs">save</button>
<button id="btnUndo" onClick="editor.undo()" class="btn btn-primary btn-xs">undo</button>
<button id="btnRedo" onClick="editor.redo()" class="btn btn-primary btn-xs">redo</button>
</div>
<div class="inner" id="editor"></div>
@@ -73,18 +73,6 @@
}
});

$('#btnSave').onClick(function(){
save();
});

$('#btnUndo').onClick(function(){
editor.undo();
});

$('#btnRow').onClick(function(){
editor.redo();
});

window.editor = editor;
</script>



Loading…
Cancel
Save