Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
benabel opened this issue Oct 27, 2023 · 1 comment
Open

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

benabel opened this issue Oct 27, 2023 · 1 comment

Comments

@benabel
Copy link

benabel commented Oct 27, 2023

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.

@seangwright
Copy link

I've also run into this issue. Are these plugins incompatible with each other?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants