Skip to content

CollaborationCaret crashes with "Cannot read properties of undefined (reading 'doc')" when tables are present #6979

@goteam-joshclaudio

Description

@goteam-joshclaudio

Affected Packages

extension-collaboration-caret, extension-collaboration, extension-table

Version(s)

3.4.4

Bug Description

When using Tiptap v3 with TableKit, Collaboration, and CollaborationCursor, the editor fails to load if the document contains a table. The error comes from the createDecorations function inside @tiptap/extension-collaboration-cursor (via tiptap/y-tiptap).

This only happens if the content has a

. Documents without tables work fine.

Browser Used

Chrome

Code Example URL

No response

Expected Behavior

Editor should load normally, even if the document contains a table.

Additional Context (Optional)

No response

Dependency Updates

  • Yes, I've updated all my dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Open SourceThe issue or pull reuqest is related to the open source packages of Tiptap.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions