forked from trilogy-group/contently-prosemirror-tables
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (49 loc) · 1.3 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!doctype html>
<meta charset=utf8>
<title>Table demo</title>
<link rel=stylesheet href="node_modules/prosemirror-view/style/prosemirror.css">
<link rel=stylesheet href="node_modules/prosemirror-menu/style/menu.css">
<link rel=stylesheet href="node_modules/prosemirror-example-setup/style/style.css">
<link rel=stylesheet href="style/tables.css">
<link rel=stylesheet href="node_modules/prosemirror-gapcursor/style/gapcursor.css">
<link rel=stylesheet href="style/tables.css">
<style>
body {
max-width: 50em;
font-family: Georgia;
}
.ProseMirror-menubar-wrapper {
border: 1px solid silver;
outline: none;
}
.ProseMirror {
padding: 5px 15px;
}
.ProseMirror table {
margin: 0;
}
.ProseMirror th, .ProseMirror td {
min-width: 1em;
border: 1px solid #ddd;
padding: 3px 5px;
}
.ProseMirror .tableWrapper {
margin: 1em 0;
}
.ProseMirror th {
font-weight: bold;
text-align: left;
}
</style>
<h1>Table demo</h1>
<div style="display: none" id=content>
<h2>Example content</h2>
<p>The table:</p>
<table>
<tr><th colspan=3 data-colwidth="100,0,0">Wide header</td></tr>
<tr><td>One</td><td>Two</td><td>Three</td></tr>
<tr><td>Four</td><td>Five</td><td>Six</td></tr>
</table>
</div>
<div id=editor></div>
<script src="demo_bundle.js"></script>