[GH-ISSUE #2283] [Bug] Copy past code into a code block #947

Closed
opened 2026-03-23 20:43:29 +00:00 by mirror · 2 comments
Owner

Originally created by @annieappflowy on GitHub (Apr 17, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2283

Bug Description

Copy past the Rust code into a code block
The format is lost
image

const onDragEnd: OnDragEndResponder = (result) => {
if (!result.destination?.index) return;
void controller.moveField(result.source.droppableId, result.source.index, result.destination.index);
void controller.moveField({
fieldId: result.source.droppableId,
fromIndex: result.source.index,
toIndex: result.destination.index,
});
};

How to Reproduce

As described in the description

Expected Behavior

The format remains

Operating System

MacOS

AppFlowy Version(s)

Main branch

Screenshots

No response

Additional Context

No response

Originally created by @annieappflowy on GitHub (Apr 17, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/2283 ### Bug Description Copy past the Rust code into a code block The format is lost <img width="1052" alt="image" src="https://user-images.githubusercontent.com/12026239/232492824-1b21d5a2-923c-4cb2-9c74-3bf2ded411ea.png"> const onDragEnd: OnDragEndResponder = (result) => { if (!result.destination?.index) return; void controller.moveField(result.source.droppableId, result.source.index, result.destination.index); void controller.moveField({ fieldId: result.source.droppableId, fromIndex: result.source.index, toIndex: result.destination.index, }); }; ### How to Reproduce As described in the description ### Expected Behavior The format remains ### Operating System MacOS ### AppFlowy Version(s) Main branch ### Screenshots _No response_ ### Additional Context _No response_
mirror 2026-03-23 20:43:29 +00:00
  • closed this issue
  • added the
    editor
    bug
    labels
Author
Owner

@AmanNegi commented on GitHub (Apr 17, 2023):

In the previous stable version it was working fine (v0.0.1)

app_flowy_rM16xwZbUb

<!-- gh-comment-id:1511470016 --> @AmanNegi commented on GitHub (Apr 17, 2023): In the previous stable version it was working fine (`v0.0.1`) ![app_flowy_rM16xwZbUb](https://user-images.githubusercontent.com/37607224/232516286-202673e8-f051-42aa-b777-e5c1bd1d504a.png)
Author
Owner

@bijaykumarpun commented on GitHub (Apr 21, 2023):

Seems to have already been fixed ?; codeblock retained its format

image

<!-- gh-comment-id:1517322666 --> @bijaykumarpun commented on GitHub (Apr 21, 2023): Seems to have already been fixed ?; codeblock retained its format ![image](https://user-images.githubusercontent.com/13991373/233555872-1860cc25-e869-4c60-81ea-63ac683796ca.png)
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#947
No description provided.