Skip to content

Conversation

@arpandhakal
Copy link
Collaborator

Changes

  • Instead of doing setContent(currentEditor.getHTML().replaceAll(fileReader.result as string, signedUrl)) which only updates the content on our state, we should have been updating tiptap's internal store.
  • Implemented currentEditor.chain().focus().setNodeSelection(imagePos).updateAttributes('image', { src: signedUrl }).run() which also updates the tiptap's internal state replacing the src with the new signedUrl. Also matched the exact image position. Previously, the replaceAll would replace the src with the new signedUrl for all image in the editor.

Testing Criteria

@arpandhakal arpandhakal requested a review from rrojan February 10, 2026 07:36
@arpandhakal arpandhakal self-assigned this Feb 10, 2026
@linear
Copy link

linear bot commented Feb 10, 2026

@vercel
Copy link

vercel bot commented Feb 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
client-home-v3 Ready Ready Preview, Comment Feb 10, 2026 7:36am

Request Review

Copy link
Collaborator

@priosshrsth priosshrsth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@arpandhakal arpandhakal merged commit 2772757 into main Feb 11, 2026
4 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