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

Wrap children of root not working #5748

Open
andreash opened this issue Oct 20, 2024 · 0 comments
Open

Wrap children of root not working #5748

andreash opened this issue Oct 20, 2024 · 0 comments
Labels

Comments

@andreash
Copy link

andreash commented Oct 20, 2024

I LOVE the concept of slate. Just stumbled upon something which might be a bug. If it is intended behavior, I am happy to generate a PR to update the documentation for Transforms.wrapNodes.

Description
Transforms.wrapNodes(editor,{type: ... }, {at: [])
does not wrap the children of the root.

Expectation
Children get wrapped in the passed element.

@andreash andreash added the bug label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant