slate
slate copied to clipboard
Incorrect behaviour when inserting a fragment that crosses multiple blocks
Description If a multi block fragment is pasted within the middle of a paragraph rather than merging with the paragraph and inserting the block it combines all of the text from the fragment and inserts it into the block the selection is in
If you select text first then paste it behaves correctly
Recording

Sandbox I used the Huge Document example to test this https://www.slatejs.org/examples/huge-document
Steps
- Go to https://www.slatejs.org/examples/huge-document
- Select a fragment that goes across multiple paragraphs
- Place your cursor within another paragraph and press paste
- View that the text is merged into that paragraph rather than creating the paragraphs
Expectation
Expected behaviour within word - the separation between blocks is kept within the pasted fragment

Environment
- Slate Version: 0.82.0