-
In the slate-plugin, lists, todo-lists, or other complex blocks are very likely to cause problems when cutting and pasting ,like this .I think the most important problem is that the selection is too free and the user should choose blocks instead of text nodes,like this.So, how do I get started? I'd love to contribute a global selection control plugin to Slate-Plugins, |
Beta Was this translation helpful? Give feedback.
Answered by
zbeyens
Mar 9, 2021
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zbeyens
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Slate.onChange
is called when selection changes. You can use the exportedisAcrossListItems
to know if the selection is across multiple list items. Then your React component needs to show this background color if true.