Skip to content

Monaco Editor: cursor position is reset when the state is saved #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dwightjack opened this issue Aug 10, 2023 · 0 comments
Closed

Monaco Editor: cursor position is reset when the state is saved #147

dwightjack opened this issue Aug 10, 2023 · 0 comments

Comments

@dwightjack
Copy link

dwightjack commented Aug 10, 2023

This issue can be reproduced in the current live version of the repl: https://repl-vuejs.vercel.app/

With Monaco Editor, every time the state of the editor is saved (whether the URL hash update is setup or not), the cursor gets repositioned to the beginning of the file.

This behavior is not shown using Codemirror.

@sxzz sxzz closed this as completed in bd59eef Aug 10, 2023
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

No branches or pull requests

1 participant