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

Not able to copy-paste inline void #4806

Open
laufeyrut opened this issue Jan 26, 2022 · 1 comment
Open

Not able to copy-paste inline void #4806

laufeyrut opened this issue Jan 26, 2022 · 1 comment
Labels

Comments

@laufeyrut
Copy link
Contributor

Description
Not able to copy-paste inline void

Recording
https://user-images.githubusercontent.com/15036127/151166062-4ca7cc0e-5674-4ba8-b1fb-2ffdb21dd574.mov

Steps
To reproduce the behavior:

  1. Go to https://www.slatejs.org/examples/mentions
  2. Click on Mention
  3. Copy the Mention
  4. Try to paste it

Expectation
Expected that I would be able to copy-paste the Mention

Environment

  • Slate Version: 0.72.3
  • Operating System: MacOs 11.6.2
  • Browser: Microsoft Edge
@christianhg
Copy link

I believe this is because insertFragment needs to be called with voids: true if you want to be able to paste on top of voids.

if (!voids && Editor.void(editor, { at })) {

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

2 participants