Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Blueprint setup

Bastian Allgeier edited this page Jul 15, 2020 · 3 revisions

Once the plugin is installed, you can use the new editor field type in your blueprints:

fields:
  text:
    label: Editor
    type: editor

Options

allowed

You can configure the allowed block types with the allowed option:

fields:
  text:
    label: Editor
    type: editor
    allowed: 
      - h1
      - paragraph
      - image

disallowed

Instead of specifying allowed blocks, you can also set a list of disallowed blocks. Both options (allowed and disallowed) cannot be mixed though

fields:
  text:
    label: Editor
    type: editor
    disallowed: 
      - h1
      - paragraph
      - image

Replacing a textarea

You can switch a textarea field to the new editor field and the content should be converted to blocks automatically.

Clone this wiki locally