|
|
@@ -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> |
|
|
|
|
|
|
|