Text-based blocks paste text instead of block after copying

When coyping a heading, paragraph, button block, etc., when pasting, instead of pasting the block, the block’s text will get pasted inside to the block the canvas instead.

No issues with div, section, icon block, etc.

Environment info

  • WordPress version: latest
  • Cwicly Plugin version: latest
1 Like

Hi @Marius,

I confirm this has happened to us as well.

This may be related to:

Hello @Marius,

I believe we introduced this with the change in copy/pasting blocks during the beta to properly accommodate a unified experience between Gutenberg and Cwicly.

If a block that supports text is selected during a paste event, then this would imply that you are expecting it to be pasted as plain text?

Hello @Louis,

While this makes sense, it does depend on what has been copied.

When the cursor is in a text block and the user pastes, the default WP behaviour seems to be:

  1. If what was copied is just text, paste as text
  2. If what was copied contains a block that is not text, paste as blocks
1 Like

Hello @Louis.

I read it in the changelog but didn’t know exactly what was behind it, so thanks for clearing that up.

There is an issue though which has probably led to this post.
When you select a text-based block, the cursor is placed at the very beginning. Why is that?

The text cursor is now very difficult to recognize, as the blue outline for an active block makes the cursor difficult to identify, in addition to the fact that I expect it to be at the end of the text.
The visual indicator of an active/hovered block outplays the active text indicator (cursor).
So I don’t know whether the text-based block or the actual text is selected/focused.

Probably a Gutenberg quirk, just wanted to provide more feedback on this.

2 Likes