forked from dmitrii-kuznetsov/table
-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.html
68 lines (59 loc) · 1.19 KB
/
test.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test of Table</title>
<style>
body, html {
margin: 0;
}
body {
display: flex;
flex-direction: column;
align-items: center;
}
#editorjs {
width: 800px;
margin-top: 10px;
}
</style>
</head>
<body>
<div id="editorjs"></div>
<script src="//cdn.jsdelivr.net/npm/@editorjs/editorjs@latest"></script>
<script src="dist/bundle.js"></script>
<script>
const editor = new EditorJS({
autofocus: true,
data: {
time: 1593767457585,
blocks: [
{
type: 'table',
data: {
content: [
['a', 'table'],
['tool', 'test'],
['press', 'tab'],
]
}
}
],
version: '2.18.0',
},
placeholder: 'Table tool test',
holder: 'editorjs',
tools: {
table: {
class: Table,
inlineToolbar: true,
config: {
rows: 3,
cols: 3
}
}
}
})
</script>
</body>
</html>