Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

fix: preserve cursor position when editing blog content#37

Open
santoslgl01-web wants to merge 1 commit into
Safvan-tsy:mainfrom
santoslgl01-web:fix/issue-31-cursor-jump-2
Open

fix: preserve cursor position when editing blog content#37
santoslgl01-web wants to merge 1 commit into
Safvan-tsy:mainfrom
santoslgl01-web:fix/issue-31-cursor-jump-2

Conversation

@santoslgl01-web
Copy link
Copy Markdown

Summary

  • initialize the Tiptap editor with the fetched post HTML
  • avoid resetting the document when the current editor HTML already matches the incoming content
  • sync external content changes back into the editor without emitting another update, which preserves the user's caret position while typing

Testing

  • npm run lint
  • npm run build

Fixes #31

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 27, 2026

@santoslgl01-web is attempting to deploy a commit to the safvantsy's projects Team on Vercel.

A member of the Team first needs to authorize it.

@santoslgl01-web
Copy link
Copy Markdown
Author

Thanks for the PR checks. The code fix is complete; the only failing item is Vercel deployment authorization on the maintainer team side (Authorization required to deploy.), which I cannot approve as an external contributor. Please let me know if you would like any code changes beyond that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to properly edit from the editor

1 participant