storyblok / field-plugin

Create and deploy Storyblok Field Plugin
https://www.storyblok.com/docs/plugins/field-plugins/introduction
25 stars 3 forks source link

Access FieldPlugin options from within validateContent #342

Open henriksjodahl opened 6 months ago

henriksjodahl commented 6 months ago

Describe the solution you'd like I would like to be able to access FieldPlugin options from within the validateContent function.

The reason is i've got a plugin that selects objects, and i was thinking about having an option that states if it should be an single or multiselect. And if multiple, the validation creates an array, if single its just a string.

Describe alternatives you've considered ...

Additional context ...

eunjae-lee commented 6 months ago

Hi @henriksjodahl thanks for creating this issue. We will let you know once we get to work on this. (cannot provide the ETA yet, though)