[GH-ISSUE #7710] [Bug] Breaking Callout block #3410

Open
opened 2026-03-23 21:29:56 +00:00 by mirror · 5 comments
Owner

Originally created by @forghani77 on GitHub (Apr 8, 2025).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/7710

Originally assigned to: @LucasXu0 on GitHub.

Bug Description

Pressing backspace in callout block breaks the block and put cursor outside of callout. New line should (\r\n) should be inserted in callout

How to Reproduce

  1. Simply add a callout block and a paragraph in it that includes new lines.
  2. Clear a line and at begging of line press backspace again
  3. It will break the callout

Expected Behavior

Not breaking Callout

Operating System

Windows, Android

AppFlowy Version(s)

0.8.8

Screenshots

Image

Image

Additional Context

No response

Originally created by @forghani77 on GitHub (Apr 8, 2025). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/7710 Originally assigned to: @LucasXu0 on GitHub. ### Bug Description Pressing backspace in callout block breaks the block and put cursor outside of callout. New line should (\r\n) should be inserted in callout ### How to Reproduce 1. Simply add a callout block and a paragraph in it that includes new lines. 2. Clear a line and at begging of line press backspace again 3. It will break the callout ### Expected Behavior Not breaking Callout ### Operating System Windows, Android ### AppFlowy Version(s) 0.8.8 ### Screenshots ![Image](https://github.com/user-attachments/assets/99a0f05b-d937-488f-b418-e4b464f30074) ![Image](https://github.com/user-attachments/assets/81b89a09-b033-443e-a517-090bccc25977) ### Additional Context _No response_
Author
Owner

@LucasXu0 commented on GitHub (Apr 9, 2025):

New line should (\r\n) should be inserted in callout

@forghani77 Pressing the backspace key on an empty line within the callout will exit the callout block. I don’t understand what you mean by inserting a new line after pressing backspace.

<!-- gh-comment-id:2788080595 --> @LucasXu0 commented on GitHub (Apr 9, 2025): > New line should (\r\n) should be inserted in callout @forghani77 Pressing the backspace key on an empty line within the callout will exit the callout block. I don’t understand what you mean by inserting a new line after pressing backspace.
Author
Owner

@forghani77 commented on GitHub (Apr 9, 2025):

@LucasXu0 I meant you should press enter key then backspace to exit out of it. without enter (\r\n) it does not have issues.
Also another issue I'm noticing here pressing Ctrl+A selects entier document rather than entire callout block.

<!-- gh-comment-id:2789638253 --> @forghani77 commented on GitHub (Apr 9, 2025): @LucasXu0 I meant you should press enter key then backspace to exit out of it. without enter (\r\n) it does not have issues. Also another issue I'm noticing here pressing Ctrl+A selects entier document rather than entire callout block.
Author
Owner

@LucasXu0 commented on GitHub (Apr 10, 2025):

@forghani77 Can you attach a video recording to demo your expected behavior?

Also another issue I'm noticing here pressing Ctrl+A selects entier document rather than entire callout block.

We will improve the Ctrl+A behavior when the selection is in block mode.

<!-- gh-comment-id:2791388372 --> @LucasXu0 commented on GitHub (Apr 10, 2025): @forghani77 Can you attach a video recording to demo your expected behavior? > Also another issue I'm noticing here pressing Ctrl+A selects entier document rather than entire callout block. We will improve the Ctrl+A behavior when the selection is in block mode.
Author
Owner

@forghani77 commented on GitHub (Apr 10, 2025):

@LucasXu0 Here you go

https://github.com/user-attachments/assets/51afcc04-1a1c-4b42-8648-7eb5c0ac91b9

<!-- gh-comment-id:2792397474 --> @forghani77 commented on GitHub (Apr 10, 2025): @LucasXu0 Here you go https://github.com/user-attachments/assets/51afcc04-1a1c-4b42-8648-7eb5c0ac91b9
Author
Owner

@LucasXu0 commented on GitHub (Apr 11, 2025):

Okay. The expected behavior should be:

  1. Delete the empty line.
  2. Move the cursor to the previous line in the same callout block.
<!-- gh-comment-id:2795674757 --> @LucasXu0 commented on GitHub (Apr 11, 2025): Okay. The expected behavior should be: 1. Delete the empty line. 2. Move the cursor to the previous line in the same callout block.
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#3410
No description provided.