Blueprint type:editor not displaying code/preview buttons

I’m working on a simple custom form and using a field of type:editor to provide rich content to the page.

Unfortunately the editor that is generated doesn’t show the code/preview buttons we can see in the default blueprint (top right corner).

Is there a way to have them show up?

Sample of my blueprint file:

form:
  fields:
    tabs:
      type: tabs
      active: 1

      fields:
        content:
          type: tab
          title: Content

          fields:
            content:
              type: editor 
---

Try

form:
  fields:
    tabs:
      type: tabs
      active: 1

      fields:
        content:
          type: tab
          title: Content

          fields:
            content:
              type: editor
              codemirror:
                'ignore': ['code']

Explanation: by default the editor ignores the ['code', 'preview'], which removes the code and the preview functionality. You re-set that property to just include ['code'], which will just remove the code button.

Awesome, it works!
This would be a nice addition to the docs!

It’s worth noting since the preview button is a toggle for the code button, you should either keep none or both, other wise the functionality is broken (no way to go back to code):

codemirror:
  ignore: []

Thank you!