Start a new page with a "text" blocks

I want to directly be able start writing text for a blocks element and tried to set it accordingly to the field properties like this:

      text: 
        type: blocks
        autofocus: true
        default: ['text']
    fields:
      text: 
        type: blocks
        autofocus: true
        default:
          - text

But I always get the following error message: “array_key_exists() expects parameter 2 to be array”
Why and how can I solve it?

You can use default prop for blocks field like that:

fields:
  text:
    type: blocks
    default:
      - type: text
        content: 
          text: Default initial text..
1 Like

Added it to the docs:

2 Likes

Thanks a lot, that did the trick!
Only the autofocus option doesn’t work for me but that is just a minor thing.
I found a fixed bug report about it from the beginning of the year but it doesn’t work for me.