-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathtest.html
executable file
·76 lines (68 loc) · 1.6 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
69
70
71
72
73
74
75
76
<!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>
</div>
<div class="ce-example__output">
<pre class="ce-example__output-content" id="output"></pre>
</div>
<script src="https://cdn.jsdelivr.net/npm/@editorjs/editorjs@latest"></script>
<script src="dist/bundle.js"></script>
<script>
const editor = new EditorJS({
autofocus: true,
data: {
version: '2.18.0',
},
placeholder: 'Table tool test',
holder: 'editorjs',
tools: {
table: {
class: Table,
inlineToolbar: true,
config: {
rows: 0,
cols: 0
},
},
},
i18n: {
messages: {
tools: {
table: {
"Insert column before": "Insert column before TRANSLATION",
"Insert column after": "Insert column after TRANSLATION",
"Insert row before": "Insert row before TRANSLATION",
"Insert row after": "Insert row after TRANSLATION",
"Delete row": "Delete row TRANSLATION",
"Delete column": "Delete column TRANSLATION",
}
},
},
},
data : {
blocks: [
]
},
})
</script>
</body>
</html>