yf-yang

Results 33 comments of yf-yang

Isn't it a correct behavior? https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers#web_workers_api If I got it right, in web worker, only `self` is available. > workers run in another global context that is different from the...

@GermanJablo #5930 I agree I have similar troubles, but the main idea behind is decorating element nodes (instead of manipulating simple DOM node). By the way, when realizing this is...

Decorate an ElementNode. Consider things like that: https://github.com/facebook/lexical/blob/main/packages/lexical-playground/src/nodes/LayoutContainerNode.ts You have to know vanilla JS well to make a complex element node, or you can do very little stuff. Alternatively, NestedEditor...

Maybe it is already fixed with https://github.com/react-grid-layout/react-grid-layout/pull/719

Hey I agree using serialized JSON would be a better approach (especially when taking versioning into consideration) , so I decide to implement one personally (and publicly). Now I'm considering...

After writing some codes, I found a big drawback of using exportJSON/importJSON: test whether or not a node has changed. Let me briefly describe what would happen: 1. Suppose a...

My bad, just noticed if tag has collaboration, then the change is skipped. Needs some final debugging to make the whole stuff work.

https://github.com/yf-yang/lexical/tree/refactor-yjs To whom it may concern, I've already refactored most of the parts. Unit tests are passed. Played with the playground on my own and it works fine. I haven't...

@vans37 Sorry I decided to abandon this framework. If you are willing to debug yourself, I can provide you some tips: There are two functions, syncLexicalChangesToYjs and syncYjsToLexical (I forget...