-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
Invalid position at 334 at https://docs.remirror.org/editors/wysiwyg #96
Comments
@joonhocho thanks for raising this. I have confirmed the issue 👍 The offending line is in the positioners. While there are several easy fixes, the fundamental issue is that the EditorState held by the remirror component is one step ahead of the EditorState stored by Prosemirror. When updating the editor state the remirror component first calls The updateHandler can be found here. By simply moving the The only problem is that currently, the Before I can merge in the simple fix I'll need to update |
@ifiokjr Thank you so much for details. Awesome work on your repo, btw. I've been searching for editors for past few days and ,after trying out so many options, decided yours is the best one for my use case (prosmirror + react + typescript). I still see performance issues with slatejs, unfortunately. I don't have much experience on editors yet, though I've read ProsMirror documentations. You said your work is inspired by tiptap. Have you also taken a look at Atlaskit's editor? It's built on top of react + prosmirror + typescript. https://bitbucket.org/atlassian/atlaskit-mk-2/src/master/packages/editor/ They have implemented full featured editor, so they may have solutions for similar problems. |
@joonhocho thanks for the pointer in the atlassian direction. Credit where credit is due, I've used a lot of code from them in making this library. The current implementation of NodeView's with React components is basically a direct copy. I've also got some work coming (at some point) for tables which borrows heavily from their library (albeit simplified). |
Go to https://docs.remirror.org/editors/wysiwyg
On load, select all content delete press undo and it breaks the page. there are error logs on console
The text was updated successfully, but these errors were encountered: