appflowy-editor
appflowy-editor copied to clipboard
[Bug] Pasting unformatted text in formatted text does not format
Bug Description
Pasting pastes with format even when there is none (default background, for example).
Pasting without format also changes the format at the destination.
How to Reproduce
- Add color to the background of a text
- Copy some text
- Paste it between the formatted text as unformatted text (
ctrl+shift+v) - See the pasted text does not have background
Expected Behavior
~The copied text should be pasted keeping the format of the destination area when it is an unformatted text.~
~At least,~ using ctrl+shift+v should paste plain text and keep the destination format, but it doesn't.
Operating System
Linux
AppFlowy Editor Version(s)
Built from source
Screenshots
Screencast from 24-01-2024 11:03:01.webm
Additional Context
No response
@jpenna You were pasting the text without formatting, but you expected the text to follow the style of the destination text, correct?
Yes, that's it. I found a solucionar already. I'll send a PR today probably. Working on tests.
On Wed, Jan 24, 2024, 11:56 Lucas.Xu @.***> wrote:
@jpenna https://github.com/jpenna You were pasting the text without formatting, but you expected the text to follow the style of the destination text, correct?
— Reply to this email directly, view it on GitHub https://github.com/AppFlowy-IO/appflowy-editor/issues/688#issuecomment-1908298300, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2DWOSZ5Q2PZCEMBHBPNHTYQEOJ7AVCNFSM6AAAAABCI2DNMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBYGI4TQMZQGA . You are receiving this because you were mentioned.Message ID: @.***>
Sorry, I replied on the run and didn't realize it was another issue I've opened. I was working on another fix and not this one.
I'll work on this tomorrow.