diff --git a/.gitmodules b/.gitmodules
index 8e40c5e6..2041e602 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -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
diff --git a/example/example-dev.html b/example/example-dev.html
index 84553b66..2ae6f1d2 100644
--- a/example/example-dev.html
+++ b/example/example-dev.html
@@ -68,7 +68,8 @@
-
+
+
@@ -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'
}
diff --git a/example/tools/nested-list b/example/tools/nested-list
new file mode 160000
index 00000000..64566ce5
--- /dev/null
+++ b/example/tools/nested-list
@@ -0,0 +1 @@
+Subproject commit 64566ce553fc90e20a3721ec1bf24c959d1efefd