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:
Peter Savchenko 2021-03-22 13:04:47 +03:00 committed by GitHub
parent 79793906a4
commit d27427e2da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 5 deletions

3
.gitmodules vendored
View file

@ -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

View file

@ -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'
}

@ -0,0 +1 @@
Subproject commit 64566ce553fc90e20a3721ec1bf24c959d1efefd