We’ve got a page using the builder field from @timoetting ’s Builder plugin . Inside the field there is a textarea. Here is a reduced version of the settings:
interview:
type: builder
label: Interview
fieldsets:
questionset:
label: Frage
fields:
question:
type: textarea
label: Frage
files: page.images
When trying to add images to the textarea using the toolbar , we get this error:
My guess is that the context page.images
is wrong given the nested structure:
How do we have to define the files
options to enable image selection?
This has already been reported here: Error message when selecting file in textarea . I think it has to be fixed in the plugin itself.
Thanks, @texnixe ! And I really did search before posting …
It would probably make sense to create an issue in the builder repo.
You are right, I’ll do that.
Hey everyone,
this is somehow a duplicate of another thread here. I just postet a reply inside that thread an am currently waiting for some input from the kirby devs.
Hey everyone.
The problem seems to be, that every route that ends with */files is processed by the kirby core - even if I try to handle them inside my plugin. The Kirby Builder plugin needs to define custom endpoints for most of the api communication. I use the prefix /api/kirby-builder for these custom endpoints. This works fine for the files and pages field.
The textarea field, however, takes the custom route given by the endpoint object, and puts a /files after it which ends in a route th…