BitPhinix / slate-yjs

Yjs binding for Slate
https://docs.slate-yjs.dev
MIT License
497 stars 67 forks source link

Redlining/Versioning/Delta as Slate decorator #288

Open Hideman85 opened 2 years ago

Hideman85 commented 2 years ago

I'm wondering if there is a plan for implementing the visualisation of the delta via Slate decorator?

I look over the code and the doc, I probably found a way to convert Yjs position to Slate position as a beginning of something.

I try to find how to get the delta on my shareType, but I don't know yet what is the best way, either I could use sharedType.observeDeep or try to build a snapshot system like discussed in this topic https://discuss.yjs.dev/t/live-tracking-track-changes/293/11

Let me know if something is already plan or if you have any idea of the best implementation with Slate ;)

molink-huseong commented 2 years ago

Hi, I'm wondering about this too. I want to implement versioning system with slate yjs but too hard.