DefaultBlocks
Hi!
Is there a way to hardcode the default blocks as well as prevent the user from loading them manually, something like this:
BlockEditor::make()
->defaultBlocks([
[
'name' => 'ContentItems',
'values' => [
'title' => 'Título por defecto'
]
],
[
'name' => 'text',
'values' => [
'text' => 'Texto por defecto'
]
]
])
4 Replies
Im not sure what you want to achive here? What limitation you want to provide via blocks?
It seems like @luciano.mizra wants to do 2 things:
- init blocks with predefined values
- prevent creation of new blocks
Correct?
Yes this is exactly it, sorry if I explained it wrong. My English is not the best