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
kallefrombosnia
kallefrombosnia17mo ago
Im not sure what you want to achive here? What limitation you want to provide via blocks?
ifox
ifox17mo ago
It seems like @luciano.mizra wants to do 2 things: - init blocks with predefined values - prevent creation of new blocks Correct?
luciano.mizra
luciano.mizraOP17mo ago
Yes this is exactly it, sorry if I explained it wrong. My English is not the best
Want results from more Discord servers?
Add your server