From d27427e2da48d9433b58d9c31be87a09c28d6eb8 Mon Sep 17 00:00:00 2001 From: Peter Savchenko Date: Mon, 22 Mar 2021 13:04:47 +0300 Subject: [PATCH] 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 --- .gitmodules | 3 +++ example/example-dev.html | 20 +++++++++++++++----- example/tools/nested-list | 1 + 3 files changed, 19 insertions(+), 5 deletions(-) create mode 160000 example/tools/nested-list 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