[GH-ISSUE #4905] [FR] When pasting text into an empty blcok with formatting, is it possible to not replace the block style? #2178

Closed
opened 2026-03-23 21:20:21 +00:00 by mirror · 5 comments
Owner

Originally created by @q200892907 on GitHub (Mar 15, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4905

Description

When pasting text into an empty blcok with formatting, is it possible to not replace the block style?

For example, in an empty H1, pasting text will be replaced with text style. I want it to maintain the style of H1. The same is true for other formats, which is more in line with most people's operating habits.

Impact

The empty block style will not change into the format I don’t want.

Additional Context

No response

Originally created by @q200892907 on GitHub (Mar 15, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4905 ### Description When pasting text into an empty blcok with formatting, is it possible to not replace the block style? For example, in an empty H1, pasting text will be replaced with text style. I want it to maintain the style of H1. The same is true for other formats, which is more in line with most people's operating habits. ### Impact The empty block style will not change into the format I don’t want. ### Additional Context _No response_
Author
Owner

@q200892907 commented on GitHub (Mar 15, 2024):

The idea is that when pasting is in text format and is empty, the format is maintained and pasted. If it is formatted, the text is pasted.

<!-- gh-comment-id:1998886852 --> @q200892907 commented on GitHub (Mar 15, 2024): The idea is that when pasting is in text format and is empty, the format is maintained and pasted. If it is formatted, the text is pasted.
Author
Owner

@LucasXu0 commented on GitHub (Mar 15, 2024):

@q200892907 So, your expectation is to apply formatting only to pasted text when the block is a paragraph, not to headings, bulleted lists, etc.

<!-- gh-comment-id:1998984302 --> @LucasXu0 commented on GitHub (Mar 15, 2024): @q200892907 So, your expectation is to apply formatting only to pasted text when the block is a paragraph, not to headings, bulleted lists, etc.
Author
Owner

@q200892907 commented on GitHub (Mar 15, 2024):

https://github.com/AppFlowy-IO/AppFlowy/assets/4517301/3c64ded8-2cca-4fbb-8154-eacab916d0fc

Just like recording the screen
If you paste formatted text in a formatted block, only the text will be pasted
If you paste it in a standard text block, the original format will be maintained

@LucasXu0

<!-- gh-comment-id:1999005881 --> @q200892907 commented on GitHub (Mar 15, 2024): https://github.com/AppFlowy-IO/AppFlowy/assets/4517301/3c64ded8-2cca-4fbb-8154-eacab916d0fc Just like recording the screen If you paste formatted text in a formatted block, only the text will be pasted If you paste it in a standard text block, the original format will be maintained @LucasXu0
Author
Owner

@LucasXu0 commented on GitHub (Mar 15, 2024):

@q200892907 It's clear. I've merged your pull request.

<!-- gh-comment-id:1999032266 --> @LucasXu0 commented on GitHub (Mar 15, 2024): @q200892907 It's clear. I've merged your pull request.
Author
Owner

@dandv commented on GitHub (Dec 10, 2024):

So, your expectation is to apply formatting only to pasted text when the block is a paragraph

The standard expectation when pasting unformatted text (Ctrl+Shift+V) is to preserve the existing formatting (i.e. apply it to the pasted text) and discard any rich text metadata from the clipboard.

<!-- gh-comment-id:2530131296 --> @dandv commented on GitHub (Dec 10, 2024): > So, your expectation is to apply formatting only to pasted text when the block is a paragraph The standard expectation when pasting unformatted text (Ctrl+Shift+V) is to preserve the existing formatting (i.e. apply it to the pasted text) and discard any rich text metadata from the clipboard.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#2178
No description provided.