Support › MB Blocks › A block without fields does not show the content in GutenbergResolved
If I create a block without fields, it shows in editor:
Enter content in the block settings on the right side.
We have a lot of blocks that does not need any field, so it should show the content of the block.
How could avoid that message?
The extension MB Blocks only support rendering the block if it has at least one custom field. I will inform the development team to consider supporting this case.
Same issue here. It would be nice to be able to create "empty" blocs that are only rendered in front.
Ideally there would be a 'render_html' parameter to display any html in Gutenberg editor as preview.
My temporary solution is to use fake field with type "hidden", like this
'id' => 'preview_hack',
'type' => 'hidden',
'std' => '1',
Is this considered ? I think there is a real value in supporting this.
For example when you want to use innerblocks inside a custom wrapper.
The hidden field hack does not work for me, is there any other parameters to add ?