-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
28 lines (28 loc) · 898 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>EditorX</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h1>Editable</h1>
<p>
This is an experimental editor that uses pure HTML does not use execCommand,
contenteditable, or the browser's native selection behaviors at all.
</p>
<div class="tools"></div>
<div class="editable"></div>
<script src="lib/jquery-2.1.4.js"></script>
<script src="edx-shared.js"></script>
<script src="edx-selectable.js"></script>
<script src="edx-editable.js"></script>
<script>
$('.tools').loadFragment('tools.html');
$('.editable').loadFragment('constitution.html').then(function(){
console.clear();
$('.editable').makeEditable({tools: '.tools'});
})
</script>
</body>
</html>