mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 09:52:36 +02:00
chore(example): add nested list to the example page (#1593)
* chore(example): add nested list to the example page * Update nested-list * Update example-dev.html * Update example-dev.html * Update example-dev.html
This commit is contained in:
parent
79793906a4
commit
d27427e2da
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -49,3 +49,6 @@
|
|||
[submodule "example/tools/underline"]
|
||||
path = example/tools/underline
|
||||
url = https://github.com/editor-js/underline
|
||||
[submodule "example/tools/nested-list"]
|
||||
path = example/tools/nested-list
|
||||
url = https://github.com/editor-js/nested-list
|
||||
|
|
|
@ -68,7 +68,8 @@
|
|||
<script src="./tools/header/dist/bundle.js" onload="document.getElementById('hint-tools').hidden = true"></script><!-- Header -->
|
||||
<script src="./tools/simple-image/dist/bundle.js"></script><!-- Image -->
|
||||
<script src="./tools/delimiter/dist/bundle.js"></script><!-- Delimiter -->
|
||||
<script src="./tools/list/dist/bundle.js"></script><!-- List -->
|
||||
<!-- <script src="./tools/list/dist/bundle.js"></script> List -->
|
||||
<script src="./tools/nested-list/dist/nested-list.js"></script><!-- Nested List -->
|
||||
<script src="./tools/checklist/dist/bundle.js"></script><!-- Checklist -->
|
||||
<script src="./tools/quote/dist/bundle.js"></script><!-- Quote -->
|
||||
<script src="./tools/code/dist/bundle.js"></script><!-- Code -->
|
||||
|
@ -131,7 +132,7 @@
|
|||
image: SimpleImage,
|
||||
|
||||
list: {
|
||||
class: List,
|
||||
class: NestedList,
|
||||
inlineToolbar: true,
|
||||
shortcut: 'CMD+SHIFT+L'
|
||||
},
|
||||
|
@ -218,9 +219,18 @@
|
|||
type : 'list',
|
||||
data : {
|
||||
items : [
|
||||
'It is a block-styled editor',
|
||||
'It returns clean data output in JSON',
|
||||
'Designed to be extendable and pluggable with a simple API',
|
||||
{
|
||||
content: 'It is a block-styled editor',
|
||||
items: []
|
||||
},
|
||||
{
|
||||
content: 'It returns clean data output in JSON',
|
||||
items: []
|
||||
},
|
||||
{
|
||||
content: 'Designed to be extendable and pluggable with a simple API',
|
||||
items: []
|
||||
}
|
||||
],
|
||||
style: 'unordered'
|
||||
}
|
||||
|
|
1
example/tools/nested-list
Submodule
1
example/tools/nested-list
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 64566ce553fc90e20a3721ec1bf24c959d1efefd
|
Loading…
Reference in a new issue