-
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
Can't paste into void elements #5294
Comments
I know why cannot copy content in input box. Because it's a void element. This is the default rule of slate. |
Yes, it is void element. But it is strange that you can copy-paste from slate content and it will work for void element, but it doesn't work if you copy-paste from plain text source. |
The behavior changed a bit with #5121 but there may be a scenario that is failing. Please read through the above issue and the PR that landed and see if that answers your question, or let me know if it's still not working for you. |
@dylans I do not clear understand expected behavior
|
Description
Looks like Slate forbids pasting into void elements. However, if you copy slate text and paste into void that works a bit (with runtime errors, but eventually you will see pasted text)
Recording
Sandbox
https://codesandbox.io/s/confident-orla-7wxwrd?file=/src/App.tsx
Steps
To reproduce the behavior:
Expectation
Slate should not forbid pasting into void elements
Environment
The text was updated successfully, but these errors were encountered: