1BlockEditor::make()2 3BlockEditor::make()4 ->blocks(['title', 'quote', 'text'])
1<x-twill::block-editor /> 2 3@php 4 $blocks = [ 5 'title', 6 'quote', 7 'text' 8 ]; 9@endphp10 11<x-twill::block-editor12 :blocks="$blocks"13/>
1@formField('block_editor', [2 'blocks' => ['title', 'quote', 'text', 'image', 'grid', 'test', 'publications', 'news']3])
See Block editor
Option | Description | Type/values | Default value |
---|---|---|---|
blocks | Array of blocks | array | |
label | Label used for the button | string | 'Add Content' |
withoutSeparator | Defines if a separator before the block editor container should be rendered | boolean | false |