Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Pasting at empty blocks resets to text block #679

Closed
jpenna opened this issue Jan 18, 2024 · 0 comments · Fixed by #689
Closed

[Bug] Pasting at empty blocks resets to text block #679

jpenna opened this issue Jan 18, 2024 · 0 comments · Fixed by #689

Comments

@jpenna
Copy link
Contributor

jpenna commented Jan 18, 2024

Bug Description

If you paste text after selecting the block type with /, it resets the block to text block. It works fine if you type something first.

Even if it should reset the block type (I don't think it should though), if pasting with shift+ctrl+p it shouldn't change formatting of the destination.

How to Reproduce

  1. In an empty line, tap /
  2. Select anything other than "text" (ex, "Quote")
  3. Paste a text content
  4. See it resets the block to "Text"

Expected Behavior

It should keep the block as initially selected ("Quote", H1, H2...).

Operating System

Linux

AppFlowy Editor Version(s)

Built from source

Screenshots

Screencast.from.18-01-2024.17.20.06.webm

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant