Skip to content

useEditor onUpdate callback not called when options.current is undefined (with Collaboration extension) #7417

@aribn

Description

@aribn

Affected Packages

react

Version(s)

3.15.3

Bug Description

  • TipTap version: 3.15.3
  • editor.options.current is undefined
  • The onUpdate wrapper silently fails (no error, just doesn't call the callback)
  • Only happens with Collaboration extension enabled
  • Workaround: Use editor.on('update', handler) in a useEffect

Browser Used

Chrome

Code Example URL

No response

Expected Behavior

The options.current should be set by TipTap's useEditor hook, but it's undefined.

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