forked from qqqays/server4parseEditorJs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheck.html
48 lines (48 loc) · 1.28 KB
/
check.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Editor.js Preview</title>
<script src="https://cdn.jsdelivr.net/npm/@editorjs/editorjs@latest"></script>
<script src="https://cdn.jsdelivr.net/npm/@editorjs/header@latest"></script>
<script src="https://cdn.jsdelivr.net/npm/@editorjs/paragraph@latest"></script>
</head>
<body>
<div id="editorjs"></div>
<script>
var editor = new EditorJS({
holder: 'editorjs',
readOnly: true,
tools: {
header: {
class: Header,
inlineToolbar: ['link'],
config: {
placeholder: 'Enter a header',
levels: [1, 2, 3, 4],
defaultLevel: 3
}
},
paragraph: {
class: Paragraph,
inlineToolbar: true
}
},
data: {
"time": 1713103028165,
"blocks": [
{
"id": "a2aEQyzvPf",
"type": "header",
"data": {
"text": "序 言",
"level": 3
}
}
],
"version": "2.29.1"
}
});
</script>
</body>
</html>