Skip to content
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

「Bug」relativePosition and aboslutePosition transform problem #299

Open
pubuzhixing8 opened this issue Sep 14, 2021 · 1 comment
Open
Labels
bug Something isn't working enhancement New feature or request

Comments

@pubuzhixing8
Copy link

Bug description

The cursor of user Adrain Frami was incorrectly converted, and it should be positioned at the last position of the second paragraph。

Cause

We analyzed the reason for this problem. Due to the operation of slate to yjs, the original yjs structure data was deleted (the data structure corresponding to the user's Adrain Frami focus), so an exception occurred when the absolutePositions was converted through relativePosition, and the original corresponding relationship be broken.

Resolve

First of all, I don’t have a solution to this problem. I understand that it may be related to split_node operation.

export default function splitNode(

I am not sure if the next branch or v4 is trying to solve this problem

@BitPhinix
Copy link
Owner

Hi @pubuzhixing8,

Thanks for reporting this issue!

You are correct that this is related to the translation of the split-node operations. It's currently out of the scope for the initial v4 release but this is definitely something that should be fixed in the future.

@BitPhinix BitPhinix added the bug Something isn't working label Sep 15, 2021
@BitPhinix BitPhinix added the enhancement New feature or request label Oct 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants