From c7f282731aff6e3d1350d76accab3b0cffd59ced Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 24 Nov 2026 16:20:56 +0000 Subject: [PATCH] fix(dev): Replace SimpleImage with full Image tool to enable tunes The dev page was using @editorjs/simple-image which doesn't support tunes (Stretch, withBorder, withBackground). This prevents testing those features on the local dev stand. Changes: - Replace SimpleImage with @editorjs/image including mock uploader - Fix seed data format from url to file.url structure The Image tool's Stretch, border, and background tunes are now available and functional on the dev page at index.html. Co-authored-by: Peter --- index.html | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) 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,