-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Paragraph: paste contents at cursor point rather than as new blocks #53076
Comments
Could you elaborate more on what you're expecting? Yes, currently, for multiple blocks, we split the paragraph into two at the caret, and then insert the pasted blocks in between. Do you expect all content to be inlined? Do you expect only the first pasted block to be merged with the first split block, and then last pasted block to be merged with the end of the split? More visually: This is your clipboard:
This is your content with a caret:
What do you expect when you paste the two paragraphs? What happens now:
Is this what you expect?
|
@richtabor What if you replace
|
IntoIf pasting into an existing paragraph block, I'd expect the new contents to inherit the new block:
with a clipboard of
to be
ReplaceIf replacing an existing paragraph block entirely, I'd expect the origin contents to remain in as intended. Below I'm emulating selection on the entire first paragraph block.
with a clipboard of
to be
|
Yeah, then there's also the difference when selecting the contents of a paragraph vs the paragraph. Ok, and what if you paste into a heading? :) |
I think it's fine to work exactly the same way as above, where the difference is replace v. inserting within. |
@richtabor No, I meant for the first case, if you have a collapsed selection. Should the heading disappear for the second part? |
Hat tip @richtabor for the text and video: When selecting, copying, and pasting, across more than one paragraph block, the selected contents are not pasted at the cursor point. Unexpectedly, the contents are pasted as new blocks.
The expectation is that one pastes the copied contents of more than one block, right where the cursor is. The contents should inherit the attributes of the pasted-in paragraph.
CleanShot.2023-07-27.at.15.27.21.mp4
cc @ellatrix for consideration as you weave your way through writing flow issues.
The text was updated successfully, but these errors were encountered: