-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Bold/italic/underline can be applied to more than selected text #4038
Comments
I think this bug occurs because the splitting logic in Can you try your bug if you set In our local branch, we always split if the end point of the selection is not at the end of the related node, and always if the start point of the selection is not at the start of the related node. It looks like this:
|
Related to/duplicate of #3808. |
Do you want to request a feature or report a bug?
Report a bug
What's the current behavior?
Note that the selection was started by double clicking on the first word.
Not providing a sandbox as the issue is appearing on slate.js website - above gif was recorded on https://www.slatejs.org/examples/hovering-toolbar
Slate version: whatever version is currently used for examples on www.slatejs.org, presumable the latest
On Firefox 84, Mac OS 11.1. Does not happen in Chrome.
What's the expected behavior?
The bold/italic/underline should only be applied the the text that is selected.
The text was updated successfully, but these errors were encountered: