Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Can't use split-view and menu plugins together #79

@benabel

Description

@benabel

Hello, and thanks for these plugins.
I tried to use the two mentioned plugins together and the menu doesn't appear with an error if splitediting is used before menu:

...
.use(splitEditing)
.use(menu)
.create()

DOMException: Node.insertBefore: Child to insert before is not a child of this node.

This can be adressed using inserAdjacentNode instead of insertBefore here

editor.insertAdjacentElement('beforebegin', container);

But the menu will still not appear if the order of plugins is inverted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions