Support Forum
Is there any way to have a separate instance of Gutenberg created as a custom field?
Just like we can pick WYSIWYG Editor
as a field type, it would be an actual Gutenberg instance where blocks can be used as they would on the main content area.
I don't have an answer for you, but that's an interesting idea. If so, I'm guessing it would have to be the Isolated Editor rather than the full Block Editor. But I like the idea and I hope it's possible!
Hello,
Do you mean to save the field value in the custom block as the post meta? If yes, please set the parameter storage_type
to post_meta
'storage_type' => 'post_meta'
Follow the documentation https://docs.metabox.io/extensions/mb-blocks/#storage_type
@peter what I meant is an actual Block Editor instance as a custom field.
Right now, the Block editor is only allowed on the main post content area which is very limiting.
This prevents relevant portions of a page that outputs the custom field's content limited at best to text and images and videos using the WYSIWYG editor as a field type, or high maintenance using the Custom HTML field type.
Let's say that I want to use a fancy price table with before and after comparison element separated from the main content. That would translate to a group of fields + building the markup/CSS/JS, manually maintain and customize it over time.
If there was a Block editor instance, I can just drag and drop the relevant block elements from some blocks plugins, and change their content.
Hello,
Thanks for your details. I will forward your feedback to the development team to consider supporting a custom field type Block editor in future updates.
Thank you @peter.
I hope the product/dev team will see value on it 🙂
I am also looking forward to this! Have seen searching for a solution a year -_-
It would be nice to have this field type.
Here is a good example implemented recently on Greenshift, where you can use blocks inside their Table elements cells - https://youtu.be/B3I6qQ9LciM?t=53
I thought of this a while ago but I don't think its possible within WordPress, eg. Trouble. I suspect greenshift may be using innerblocks rather than separate editor right?