{% import '_includes/forms' as forms %} {% set mode = field.editorMode ?? 'combined' %} {{ forms.selectField({ label: 'Editor Mode' | t('vizy'), instructions: 'Select the mode for the editor to use.' | t('vizy'), name: 'editorMode', value: field.editorMode, options: [ { label: 'Blocks & Rich Text' | t('vizy'), value: 'combined' }, { label: 'Rich Text Only' | t('vizy'), value: 'richText' }, { label: 'Blocks Only' | t('vizy'), value: 'blocks' }, ], toggle: true, targetPrefix: '.mode-', errors: field.getErrors('editorMode'), }) }}
{{ 'Define the types of blocks that can be created within this Vizy field, as well as the fields each block type is made up of.' | t('vizy') }}