{% import '_includes/forms' as forms %} {% if configOptions|length > 1 %} {% set configInput %} {{ forms.select({ id: 'configFle', name: 'configFile', options: configOptions, value: settings.configFile }) }} {% endset %} {% else %} {% set configInput %}

{{ 'You don’t have any Redactor configs yet.'|t|raw }}

{% endset %} {% endif %} {{ forms.field({ label: "Config"|t, instructions: "You can save custom Redactor configs as .json files in craft/config/redactor/."|t~' '~"View available settings"|t~'.', id: 'configFile' }, configInput) }} {{ forms.checkboxField({ label: "Clean up HTML?"|t, instructions: "Removes <span>’s, empty tags, and most style attributes on save."|t, id: 'cleanupHtml', name: 'cleanupHtml', checked: settings.cleanupHtml }) }}