Upload to/Select from site folder files within Editor field?

Is there a way to tell the Editor field to upload and select files from the site folder global files? I didn’t see a way in the docs but perhaps I’ve missed it.

It’s unfortunately not documented, but the Editor has the same uploads option as the textarea field: https://getkirby.com/docs/reference/panel/fields/textarea#file-upload-and-select

You should basically be able to do something like this:

myEditor: 
  type: editor
  uploads:
    parent: site
    template: my-editor-file-template

Edit: I have no idea why parts of that code example is bold :see_no_evil:

1 Like