blocksuite icon indicating copy to clipboard operation
blocksuite copied to clipboard

When copying text, the system automatically converts the text format.

Open dbwcooper opened this issue 1 year ago • 2 comments

What happened?

I replaced the text of a checkbox with an li tag, but the system automatically converted the li tag into a checkbox.

https://github.com/user-attachments/assets/bbfeb3bf-dc68-453a-acfc-c5d3417ecb3e

Distribution version

macOS ARM 64 (Apple Silicon)

What browsers are you seeing the problem on if you're using web version?

Other

Are you self-hosting?

  • [ ] Yes

Relevant log output

No response

Anything else?

No response

dbwcooper avatar Dec 05 '24 05:12 dbwcooper

It is expected. If there is no text content in the pasted block, the pasted block will be adhering the style that is pasted from.

This is especially useful when you are pasting a code block to an empty block. What's your opinion?

fourdim avatar Dec 10 '24 03:12 fourdim

It is expected. If there is no text content in the pasted block, the pasted block will be adhering the style that is pasted from.

This is especially useful when you are pasting a code block to an empty block. What's your opinion?

Hi @fourdim
thanks for replying. When I copy a block into an empty block that already has a label, I want to copy only the text part. Preserving the existing label is more stable to me. This is also consistent with Notion's behavior.

dbwcooper avatar Dec 10 '24 05:12 dbwcooper