blob: 175cec7408d9c755cb0c31097d706c5f0a3268eb [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="ui.js"></script>
<script src="uxeditor.js"></script>
<script src="interface.js"></script>
</head>
<script>
var core = null;
var iface = null;
function init()
{
var element = document.getElementById("_editor");
core = new UXEditor(element);
iface = new UXInterface(core);
iface.setup(function() {
console.log("iface setup complete");
}, "sample.html", "../../../Editor/src", ".");
// core.callbacks = iface.callbacks;
// core.setup(function() {
// core.op.cursor.test(3,4,5);
// });
}
</script>
<style>
html, body { width: 100%; height: 100%; }
body {
margin: 0;
padding: 0;
overflow: hidden;
padding-top: 64px;
}
div.toolbar {
border: none;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 64px;
background-color: #eee;
xvisibility: hidden;
}
iframe.contentframe {
border: none;
}
div#_contentWrapper {
border: none;
}
</style>
<body onload="init()">
<div class="toolbar" id="_toolbar">
<!--
<span id="_btnBold">Bold</span>
&nbsp;|&nbsp;
<span id="_btnItalic">Italic</span>
&nbsp;|&nbsp;
<span id="_btnUnderline">Underline</span>
&nbsp;|&nbsp;
<span id="_btnListNone">No list</span>
&nbsp;|&nbsp;
<span id="_btnListUL">UL</span>
&nbsp;|&nbsp;
<span id="_btnListOL">OL</span>
&nbsp;|&nbsp;
<span id="_btnListOutdent">Outdent</span>
&nbsp;|&nbsp;
<span id="_btnListIndent">Indent</span>
&nbsp;|&nbsp;
-->
</div>
<div style="border: 1px solid black; display: none">
Formatting
<pre id="_formatting" style="background-color: #eee">
</pre>
</div>
<div id="_editor"></div>
</body>
</html>