Score:0

Syntax for adding content inside group in Gutenberg json template

cn flag

I'm using Gutenberg on Drupal 9. When editing the Gutenberg JSON template for a content type I'm able to add placeholder headings and groups like so

[
["core/heading",{"placeholder":"Title Goes Here"}],
["core/group",{}]
]

However I want to put placeholder content inside the 'core/group' component. I've tried several variations including the following

["core/group",{'placeholder':'<h2>Heading inside group</h2>'}]

and

["core/group",{'placeholder':['core/heading',{'placeholder':'Heading inside group'}]}]

and

["core/group",{['core/heading',{'placeholder':'Heading inside group'}]}]

But nothing seems to work. How would I put placeholder content inside a group component in the json template of a gutenberg enabled content type?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.