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#36

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

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

Conversation

@santoslgl01-web
Copy link
Copy Markdown

Summary

  • initialize the Tiptap editor with the fetched post HTML
  • avoid re-applying editor content when the change originated from the editor itself
  • only sync external content changes into the editor without emitting another update

Testing

  • npm run lint
  • npm run build

Fixes #31

@santoslgl01-web
Copy link
Copy Markdown
Author

Hi! This should fix the editor caret jumping to the end while updating earlier paragraphs. Please let me know if you'd like any adjustments, and I’m happy to update the PR. Thanks!

@santoslgl01-web
Copy link
Copy Markdown
Author

Hi! Just checking in — please let me know if any changes are needed. Happy to update the PR. Thanks! 🙂

@santoslgl01-web
Copy link
Copy Markdown
Author

Hi! Just checking in \u2014 please let me know if any changes are needed. Happy to update the PR. Thanks! \ud83d\ude42

@santoslgl01-web
Copy link
Copy Markdown
Author

Hi! Just checking in on this PR — please let me know if any changes are needed. Happy to update it. Thanks! 🙂

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