[GH-ISSUE #6440] [Bug] Pasting in-app json on a line with text can cause corrupt blocks #2843

Closed
opened 2026-03-23 21:25:37 +00:00 by mirror · 0 comments
Owner

Originally created by @Xazin on GitHub (Sep 30, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/6440

Bug Description

If you copy something with a block that cannot contain deltas (eg. image or file block), and paste it on a line that contains deltas, they merge and thus creates a corrupt node.

How to Reproduce

See the video

Expected Behavior

If paste starts with a non-delta block, don't merge with the paragraph node but instead insert below.

Operating System

MacOS

AppFlowy Version(s)

main

Screenshots

https://github.com/user-attachments/assets/f6a6156b-b2da-4b94-b92f-690ca1c7d4a5

Additional Context

No response

Originally created by @Xazin on GitHub (Sep 30, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/6440 ### Bug Description If you copy something with a block that cannot contain deltas (eg. image or file block), and paste it on a line that contains deltas, they merge and thus creates a corrupt node. ### How to Reproduce See the video ### Expected Behavior If paste starts with a non-delta block, don't merge with the paragraph node but instead insert below. ### Operating System MacOS ### AppFlowy Version(s) main ### Screenshots https://github.com/user-attachments/assets/f6a6156b-b2da-4b94-b92f-690ca1c7d4a5 ### Additional Context _No response_
mirror 2026-03-23 21:25:37 +00:00
  • closed this issue
  • added the
    editor
    bug
    labels
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#2843
No description provided.