Conversation
|
I foresee an issue where people accidentally delete the heading, don't know how to get it back with the correct class name, and it silently doesn't output the schema. In the latest version of Gutenberg, group gets its own https://github.com/WordPress/gutenberg/releases/tag/v15.7.0 So I'm suggesting:
|
|
After my previous comment I remembered why we wanted to get rid of the group. I think we can have both template locking and the styling we want, it just might take multiple blocks. Let's discuss today. |
|
@douglas-johnson could we just lock the heading block individually and leave everything else unlocked? |
|
@jessica-townsend yes, christ! if that works that's amazing. I saw someone doing that on github but I couldn't find it in the docs. |
|
Cool, I have that up on staging if you'd like to review it @douglas-johnson |
|
The locking works great. I'm glad it was so simple, thank you for figuring that out. I would you like to discuss just one more thing. I think its unintuituve to get out of the FAQ block using the keyboard. I had to hit my up arrow so the FAQ block was selected, then hit enter. If I just hit enter, it adds new paragraphs in the FAQ.
Take a look at how the group block works. If you hit enter in an empty paragraph, it moves you out of the group block. I thought that was handled by an https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/group/block.json#L24 Can you try declaring support for it in the FAQ block.json and see if it works? |
|
@douglas-johnson this worked for me. I pushed to staging too |

Relevant Issues
What Was Accomplished
parse_blocksHow It Was Tested
How To Test
inlinestyle for the FAQ block displays the question heading and the next paragraph in the block side by side in the editor. Lists immediately following the question heading are not displayed inline.hreffor anchor tagsOpen Items