瀏覽代碼

buttons fix

master
KaiSD 5 年之前
父節點
當前提交
db4a66f7c6
共有 1 個文件被更改,包括 3 次插入15 次删除
  1. +3
    -15
      ace/index.html

+ 3
- 15
ace/index.html 查看文件

@@ -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…
取消
儲存