0

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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.