Creating a component's settings as a textarea/editor?

In a component’s settings, I can easily create a field for entering a bit of text via the component’s settings.yaml file…

example_setting:
  default: "<p><i>Sample</i> default.</p>"
  description:
    en: "This is an example setting."

I looked through https://github.com/json-editor/json-editor#json-schema-support but I couldn’t grok enough of that to figure out what I’m trying to do.

I’d like this setting to be something like the following. (Screenshot from one of the settings in the House Ads plugin.)

A pointer to how to configure how the editor behaves would be great too.

I think this might be what you’re looking for. I don’t see any examples of textarea: true in site_settings.yml, but here’s one in a theme component:

4 Likes

Easy. :exclamation: That works perfectly. Thanks Jay!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.