Use Editor in structure field?

Is is not possible to use the editor inside structure fields? The output I get on the page is - is it JSON stuff?

Output:

[
{
"attrs": [],
"content": "kkgle\u00f6ew",
"id": "_2loor6ejn",
type": "paragraph
}
]

Blueprint:

   neueProjekte:
    label: Neues Projekt
    type: structure
    fields:
      newProject:
        label: Neues Projekt anlegen
        type: editor
        size: medium
      test:
        label: Testfeld
        type: textarea

Template:

    <?php $items = $page->neueProjekte()->toStructure();?> 
    <?php foreach ($items as $item): ?>
    <article>
     <?= $item->newProject()->blocks() ?>
     <?= $item->test()->kt() ?>
   </article>

    <?php endforeach ?>

There is a little trick to make it work:

   neueProjekte:
    label: Neues Projekt
    type: structure
    fields:
      newProject:
        label: Neues Projekt anlegen
        type: editor
        pretty: false  # this option is required to make the editor work in structure fields
      test:
        label: Testfeld
        type: textarea
1 Like

Oh, so it wasn’t me? Excellent! Thank you!

Is this trick somewhere in the docs?*

*It should be

I don’t know, we haven’t moved the Editor docs to the main docs yet.