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
:
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 :)