/
example.html
29 lines (29 loc) · 1.02 KB
/
example.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
<script src="https://cdn.jsdelivr.net/npm/@editorjs/editorjs@latest"></script>
<script src="dist/footnotes.js"></script>
<div id="editorjs1" style="max-height: 500px;"></div>
<script>
const footnoteManager = new Footnotes.FootnoteManager();
const editor = new EditorJS({
holder: 'editorjs1',
autofocus: true,
tools: {
footnote: {
class: Footnotes.FootnoteTool,
config: {
}
},
footnoteblock: {
class: Footnotes.FootnoteBlock,
inlineToolbar: true,
config: {
},
},
},
onReady: () => {
footnoteManager.registerEditor(editor);
},
onChange: () => {
footnoteManager.editorChange();
}
});
</script>