Skip to content

fix(tiptap): require explicit image clicks#5381

Merged
ComputelessComputer merged 1 commit into
mainfrom
fix/image-click-selection
May 29, 2026
Merged

fix(tiptap): require explicit image clicks#5381
ComputelessComputer merged 1 commit into
mainfrom
fix/image-click-selection

Conversation

@ComputelessComputer
Copy link
Copy Markdown
Collaborator

@ComputelessComputer ComputelessComputer commented May 29, 2026

Make image node shells transparent to pointer hit testing while keeping images and resize handles interactive.


Note

Low Risk
Editor-only pointer-event and layout tweaks for image nodes; no auth, data, or API impact.

Overview
Tiptap image node views no longer steal clicks on the padded area around an image. The node view shell is now pointer-events-none, while the image and resize handles stay pointer-events-auto so selection and resizing still work when you hit those targets.

Layout is adjusted so editor width lives on NodeViewWrapper (w-fit, inline width) and the inner container is a full-width block, keeping sizing behavior aligned with the new hit-testing model.

Reviewed by Cursor Bugbot for commit 4a5e9be. Bugbot is set up for automated code reviews on this repo. Configure here.

Make image node shells transparent to pointer hit testing while keeping images and resize handles interactive.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 29, 2026

Deploy Preview for old-char ready!

Name Link
🔨 Latest commit 4a5e9be
🔍 Latest deploy log https://app.netlify.com/projects/old-char/deploys/6a19c7fe5390640008325af9
😎 Deploy Preview https://deploy-preview-5381--old-char.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@ComputelessComputer ComputelessComputer merged commit bfb0f69 into main May 29, 2026
9 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.

1 participant