appflowy-editor icon indicating copy to clipboard operation
appflowy-editor copied to clipboard

[Bug] Pasting multiple lines doesn't work on Android

Open maelchiotti opened this issue 1 year ago • 4 comments

Bug Description

When pasting a text with multiple lines on Android, it looks like it works but they are actually "fake" line.

Try adding a todo box in front of one of the lines, and they will all behave like one line.

You will also see that it is a fake line if you remove the jump between two lines and add it back manually: it will be juste a little bit higher than the other ones.

It works well on Windows though.

How to Reproduce

Paste a multiline text in the editor.

Expected Behavior

Pasting a multiline text should result in multiple lines being pasted.

Operating System

Android

AppFlowy Editor Version(s)

2.1.0

Screenshots

I copied the text from Google Lyrics.

After pasting:

Screenshot_2023-12-24-02-19-11-612-edit_com.maelchiotti.materialnotes.jpg

After adding a checkbox:

Screenshot_2023-12-24-02-19-45-191-edit_com.maelchiotti.materialnotes.jpg

After manually replacing the jump after the first line (notice the slightly highest spacing):

Screenshot_2023-12-24-02-20-07-870-edit_com.maelchiotti.materialnotes.jpg

Additional Context

No response

maelchiotti avatar Dec 24 '23 01:12 maelchiotti

@maelchiotti Can you copy the content to this website and share the results here? https://evercoder.github.io/clipboard-inspector/

The paste function is shared across all platforms.

LucasXu0 avatar Dec 25 '23 01:12 LucasXu0

On Windows 11:

image

On Android 12:

Screenshot_2023-12-25-20-40-03-097_org.mozilla.firefox.jpg

maelchiotti avatar Dec 25 '23 19:12 maelchiotti

I will try to reproduce it.

LucasXu0 avatar Dec 26 '23 06:12 LucasXu0

I noticed that the selection is not visible after selecting the line that was copied.

Снимок экрана 2024-01-16 в 18 14 15

Regular string.

Снимок экрана 2024-01-16 в 18 14 36

A line in which the selection is not visible.

Снимок экрана 2024-01-16 в 18 15 27

I'll look at this bug ))

@LucasXu0

Taverz avatar Jan 16 '24 15:01 Taverz