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

fromStore 还原时,当原内容删除了部分,没有完全删除,这时会把后面所有的元素加上高亮问题,这个怎么解决 #97

Open
woniu1112 opened this issue Feb 17, 2022 · 3 comments

Comments

@woniu1112
Copy link

woniu1112 commented Feb 17, 2022

fromStore 还原时,当原内容删除了部分,没有完全删除,这时会把后面所有的元素加上高亮问题,这个怎么解决 @alienzhou

@Neo-Chaos
Copy link

请问一下解决了嘛?我也遇到这个问题了 @woniu1112

@Neo-Chaos
Copy link

找到了,将初始化的wrapTag设置为i即可

@alienzhou
Copy link
Owner

fromStore 还原时,当原内容删除了部分,没有完全删除,这时会把后面所有的元素加上高亮问题,这个怎么解决 @alienzhou

可以尝试 @Neo-Chaos 提到的方式。

不过主要的问题还是因为原文档修改了,导致按之前记录数据寻找位置时,可能出现一些预期外错误情况。目前的持久化算法对这种情况的支持还不太好。

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

3 participants