-
Notifications
You must be signed in to change notification settings - Fork 97
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
Add ProseMirror example #257
Comments
I'll try on it! |
ProseMirror's document is designed based on the tree structure, and it is necessary to record the position of the cursor in the tree as a simple number, so Resolved Positions was introduced. ResolvedPositions seems to be a value calculated by adding depth from the root. When the following text is entered into the editor, the left and right sides of each text will have the following scalar number.
Since ProseMirror's document is a tree structure and RichText is designed based on a list, a simple conversion might cause some kind of impedance mismatch. |
I think we should think about our document model. Do we need to change it? If so, how should we change it? Can we support both text and tree structures? |
@blurfx I haven't thought about it yet. Perhaps it would be better to research the Y.js approach. |
Can I take a look this issue as well? |
@mojosoeun Of course. If you check the progress of development yorkie.Tree, refer to the below link. https://codepair.yorkie.dev/5jnm2b#%23%23%23%206th%20Release%20v0.4.6%3A%20TBD |
Hello. Do you have a prosemirror example code? |
@SINHJ1 You can check ProseMirror code in below link built with recently introduced https://github.com/yorkie-team/yorkie-js-sdk/blob/main/public/prosemirror.html Also, I would be nice if you rewrite your question into English. |
Description:
Add ProseMirror example.
Currently, we are providing Quill example for the RichText datatype. And Yjs also provides Prosemirror binding examples.
Why:
The text was updated successfully, but these errors were encountered: