Cannot copy single non Cwicly blocks

Description:

When copying an individual non Cwicly block, pasting does not work.

The only way to successfully copy and paste a non Cwicly block seems to be to copy multiple blocks and include at least one Cwicly block.

@Louis, this is a significant usability issue for our clients/editors, as the workaround is not intuitive for them. We prefer to use Cwicly blocks predominantly but there are some 3rd party blocks that are useful that aren’t included with Cwicly yet, so this is important for us.

Step-by-step reproduction instructions:

  1. Open the Post Editor/Site Editor
  2. Add a non Cwicly block (e.g. Flexible Table)
  3. Copy the block (right click and copy or select and Cmd/Ctrl + C)
  4. Paste the block (Cmd/Ctrl + V)
  5. Note that nothing happens
  6. Add a Cwicly block next to the non Cwicly block
  7. Select them both
  8. Right click and Copy blocks
  9. Paste the blocks (Cmd/Ctrl + V)
  10. Note that the non Cwicly block is pasted successfully

Environment info

  • WordPress version: 6.6.1
  • Cwicly Plugin version: 1.4.1.8

Hello @StrangeTech,

I have had the same unfortunate experience, which seems to be recent.
We will have a fix for this in the next beta with a final release by next week hopefully.

Thanks for your patience on this one.

1 Like

Thank you @Louis, much appreciated.

Hello @StrangeTech,

Can you just check on your end if the copy/paste works for non-Cwicly blocks if you reset the default block setting?

Thanks.

It doesn’t work regardless of the default block here.

I tested copying non-Cwicly blocks, Cwicly blocks and a combination.

I also tested on the 1.4.1.8 as well as the most recent 1.4.2-beta2.

Weirdly, it seems worse than when I last tested and when copying a Gutenberg paragraph, the paragraph never pastes, even when copied with another Cwicly block.

Tried right now on a clean install here: https://app.instawp.io/wordpress-auto-login?site=$2y$10$7fxFa1vg70s6OIJ/vzGcWOCZddwz81jdCMyeK04X8KszRjhnPfn9y

Copying/Pasting works for non-Cwicly blocks when the default paragraph is not set. No issue with Cwicly blocks. I’m surprised by your experience, would you mind testing on that installation?

Thanks.

No problem @Louis, here is a screen recording on that clean installation reproducing the issue:

As an additional follow up - when “Paragraph - Cwicly” is the default block, nothing pastes when I copy both Cwicly and non-Cwicly blocks at the same time.

Thanks for the screencast, @StrangeTech.

What you are experiencing here is normal usual behaviour for non-Cwicly blocks. Can you try doing the same on a vanilla installation? You’ll see that you can only paste blocks when another block is selected.

We can implement the same logic for non-Cwicly blocks, but up until now, I have preferred not overriding behaviours that aren’t specific to Cwicly.

I see. I understand what you are saying, I think that as Cwicly enhances usability in many ways, giving non-Cwicly blocks the same treatment to allow copy/pasting when nothing else is selected is worthwhile as it will prevent confusion.

Even though I personally would very much like to see this working consistently, I am especially thinking about our clients rather than for us as developers. We can workaround quirks / inconsistencies in behaviour like this, especially when we become familiar with them, but our clients will not understand the difference and for them one block is just the same as another block.

This is compounded by the fact that in many cases there are no parent blocks required for single post content, so the default state will likely be nothing being selected and this will immediately prohibit pasting in posts.

We just want to make things easy and effortless for our clients and the more consistency there is in the basic interactions, the closer we get to this.

As mentioned, in an ideal world, we wouldn’t need any additional 3rd party blocks and we could disable all of the Gutenberg blocks as well. For now though, there are some really useful additional blocks that complement what Cwicly does (e.g. Table, Quote, etc) and so this becomes important.

1 Like

Hello @StrangeTech,

We’ve added support of pasting logic for non-Cwicly blocks in 1.4.2-beta5.

When you have time, I’d be grateful if you could take a look at it and see if it fixes the lack of consistency between Cwicly and non-Cwicly blocks.

Thanks in advance.

2 Likes

Thanks so much @Louis, I will test this as soon as I have time.

1 Like

Hi @Louis,

I have tested this and it works perfectly.

At first I was still seeing the same behaviour as with previous versions, whether I had Paragraph - Cwicly or Paragraph - Core selected as the default block. Then I refreshed / cleared cache and it was all working as expected.

Thank you Louis, this is so much better now.

1 Like

Thanks for bringing this up and helping us test through.
This should be now available in 1.4.2.

1 Like

Hi @Louis,

We have installed 1.4.3 on a few staging sites and we are still experiencing some copy/paste quirks with some blocks.

We have a Cwicly Columns block (added before the improved grid layout feature was available) that will not paste, whether copied on its own or with other blocks. This is not a priority for us as we don’t use dedicated column blocks anymore on any of our new sites, but I wanted to let you know.

Also there is still some pasting inconsistencies with 3rd party blocks.

With non-Cwicly blocks:

  • When we copy one individually it pastes perfectly.
  • When we copy one with other Cwicly blocks using Cmd+C it doesn’t copy.
  • When we copy one with other Cwicly blocks using right click > Copy blocks, it appears to copy but nothing pastes.

I confirmed this on multiple installations of Cwicly 1.4.3.

Steps to repeat:

  1. Add a Cwicly Paragraph block, a WordPress Separator block and a Cwicly Heading block
  2. Copy the Paragraph and paste - note that it works
  3. Copy the Separator and the Heading using Cmd+C and paste - note that it pastes the Paragraph that was previously copied
  4. Copy the Separaor and the Heading using right click Copy Blocks and paste - note that it pastes nothing
  5. Copy the Separator and paste - note that it works