Post Content block doesn't allow editing blocks within a post with "Show Template" enabled

Description:

With Show Template enabled, blocks are not editable in the Post Editor.

On a vanilla WordPress installation the post content is editable.

Update: After testing, it is clear this is an issue with the Cwicly Post Content block - using a WordPress Content block the content is editable.

@Louis, This is now more of a feature request/bug. As the Cwicly Post Content block has several advantages to the WordPress Content block, please can you make the Cwicly Post Content block work the same way the WordPress Content block works for editing posts with Show Template turned on.

Step-by-step reproduction instructions:

Please write the steps needed to reproduce the bug.

  1. Open the Post Editor for a post
  2. Tick “Show Template”
  3. Note that you get a dialog popup every time you attempt to edit a block

Screenshots, screen recording, code snippet

Screenshot 2024-09-18 at 14.43.15

Screenshot 2024-09-18 at 14.43.36

Environment info

  • WordPress version: 6.6.2
  • Cwicly Plugin version: 1.4.3
1 Like

Hello @StrangeTech,

Thanks for the report.

I believe this was reported previously by @sunny although I cannot find the exact thread.

Last time I checked, Gutenberg purposefully disables the possibility for other blocks to allow editing blocks within like the WordPress Content block currently does…

I had brought it up with the Gutenberg team but never got a positive reply. I’ll dig again and see if and what has happened in the meantime.

1 Like

Hello @Louis,

This makes sense.

If there a way Cwicly can wrap the WP Content block with a Cwicly block to gain the features of the Cwicly Post Content block without losing the ability to edit?

I am thinking of something like a new alternative Post Content block that contains the Content block implicitly but allows you to add classes and styles, etc.

Effectively we don’t want to lose the ability to customise the editor experience that the Post Content block gives in addition to apply styles on the front-end.

Perhaps this one?:

1 Like