diff --git a/index.html b/index.html index 6f8ad4bb7..a6f5455ba 100644 --- a/index.html +++ b/index.html @@ -79,7 +79,7 @@ https://editorjs.io/getting-started#tools-connection --> - + @@ -142,7 +142,29 @@ /** * Or pass class directly without any configuration */ - image: SimpleImage, + image: { + class: ImageTool, + config: { + uploader: { + uploadByFile(file) { + return Promise.resolve({ + success: 1, + file: { + url: '/assets/codex2x.png', + } + }); + }, + uploadByUrl(url) { + return Promise.resolve({ + success: 1, + file: { + url: url, + } + }); + } + } + } + }, list: { class: NestedList, @@ -322,7 +344,9 @@ type: 'image', id: "9802bjaAA2", data: { - url: '/assets/codex2x.png', + file: { + url: '/assets/codex2x.png', + }, caption: '', stretched: false, withBorder: true,