Create yjs document from a lexical EditorState #7679
              
                Unanswered
              
          
                  
                    
                      tobiasandersen
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| 
         I don't the warning if I downgrade yjs to the same version used by lexical. Is this a valid approach then?  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to create a yjs document from a lexical EditorState. I've used this approach to go from a yjs doc to an EditorState. But I'm having issues doing the opposite. This seems to work (building on the
withHeadlessCollaborationEditorfrom the link above):But I'm getting this error from yjs, which suggests I'm doing something wrong:
Invalid access: Add Yjs type to a document before reading data.
Beta Was this translation helpful? Give feedback.
All reactions