0

Have been trying to build an open-source notion using #slatejs, not been able to find why the internal copy is not working on my editor.

Multiple selections also just shows the last element in selection rather than showing all the elements selected.

Pops up this error when I press ctrl + c: copy error

Tried selecting the children element using editor.children[editor.selection.anchor.path[0]] but it just logs the last element selected and not all of them.

Can anyone help me with this? Thank you :)

2
  • Can you please provide a codesandbox or any example code we can run locally? Commented Jul 7, 2022 at 12:38
  • The code is open-sourced, here is the code for slate editor and live site @esp Commented Jul 7, 2022 at 13:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.