Skip to content

fix(dev): Enable Image tool tunes on dev page - #3060

Merged
neSpecc merged 1 commit into
nextfrom
cursor/fix-dev-page-image-stretch-c8ba
Nov 24, 2026
Merged

neSpecc merged 1 commit into
nextfrom
cursor/fix-dev-page-image-stretch-c8ba

Conversation

@neSpecc

@neSpecc neSpecc commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Problem

The dev page (index.html) uses @editorjs/simple-image, a basic image tool that doesn't support tunes like Stretch, withBorder, or withBackground. This prevents testing these features on the local dev stand.

Root Cause

SimpleImage is a minimal tool designed for quick examples, but it lacks the tune system that the full Image tool provides.

Changes

  1. Replaced SimpleImage with full Image tool: Changed from @editorjs/simple-image to @editorjs/image with a mock uploader configuration
  2. Fixed seed data format: Updated the initial image block data structure from url to file: { url } to match the Image tool's expected format

Verification

Tested locally on http://localhost:3303:

Before stretch:
The image block is aligned with the text column (~428px wide)

After toggling stretch:
The image block expands to full width (~683px), extending beyond the text column

All three tunes (Stretch image, With border, With background) are now available and functional in the block settings menu.

Testing Instructions

# Checkout this branch
git fetch origin cursor/fix-dev-page-image-stretch-c8ba
git checkout cursor/fix-dev-page-image-stretch-c8ba

# Install and run
yarn install
yarn dev

# Open http://localhost:3303
# Click the image block, open settings (⋮⋮)
# Toggle "Stretch image", "With border", or "With background"
# Observe: each tune works as expected

Notes

  • Changes are limited to the dev page setup only (index.html)
  • No modifications to the editor core
  • Marked as draft for review
Open in Web Open in Cursor 

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 <neSpecc@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/fix-dev-page-image-stretch-c8ba branch from 92e2148 to c7f2827 Compare November 24, 2026 16:21
@cursor cursor Bot changed the title fix(dev): Enable Image stretch tune on dev page for testing PR #3058 fix(dev): Enable Image tool tunes on dev page Nov 24, 2026
@neSpecc
neSpecc marked this pull request as ready for review November 24, 2026 16:59
@neSpecc
neSpecc merged commit 4ea0f91 into next Nov 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants