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:
Open the Post Editor/Site Editor
Add a non Cwicly block (e.g. Flexible Table)
Copy the block (right click and copy or select and Cmd/Ctrl + C)
Paste the block (Cmd/Ctrl + V)
Note that nothing happens
Add a Cwicly block next to the non Cwicly block
Select them both
Right click and Copy blocks
Paste the blocks (Cmd/Ctrl + V)
Note that the non Cwicly block is pasted successfully
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.
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.
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?
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.
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.
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.
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:
Add a Cwicly Paragraph block, a WordPress Separator block and a Cwicly Heading block
Copy the Paragraph and paste - note that it works
Copy the Separator and the Heading using Cmd+C and paste - note that it pastes the Paragraph that was previously copied
Copy the Separaor and the Heading using right click Copy Blocks and paste - note that it pastes nothing