Skip to content

Framework integrations don't handle remount of editor instances properly in Shadow DOM #8145

Description

@NicolaiHorlacher

Affected Packages

react, vue-2, vue-3

Tiptap Version

3.29.2

Browser Used

Chrome

What happened?

When using TipTap in a Shadow DOM, the selection position doesn't update anymore, if the same editor instance is remountend into another Shadow DOM root.

Expected Behavior

TipTap continues to work, even if it is used in a Shadow DOM.

Reproducible Example URL (Optional)

https://codesandbox.io/p/devbox/quizzical-chihiro-4cz43l

Additional Context (Optional)

Implemented the reproduction in Vue 3. Looking at the TipTap source, the other framework integrations will have the same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: editorEditor behavior, commands, and transactionsarea: reactReact integration and componentsarea: vueVue integration and componentsstatus: triageNeeds initial review and categorization

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions