{% import '_includes/forms' as forms %} {% set configInput %}
{{ forms.select({ id: 'tinymceConfig', name: 'tinymceConfig', options: tinymceConfigOptions, value: field.tinymceConfig }) }}
{% endset %} {{ forms.field({ label: "TinyMCE Config"|t('abm-tinymce'), id: 'config', instructions: "You can save custom Tinymce configs as `.json` files in `config/tinymce/`"|t('abm-tinymce'), required: true, }, configInput) }} {{ forms.checkboxField({ label: 'Show the “HTML” button for non-admin users'|t('abm-tinymce'), instructions: 'Whether the “HTML” button should be visible for non-admin users.'|t('abm-tinymce'), id: 'showHtmlButtonForNonAdmins', name: 'showHtmlButtonForNonAdmins', checked: field.showHtmlButtonForNonAdmins, }) }} {{ forms.checkboxField({ label: 'Show unpermitted volumes'|t('app'), instructions: 'Whether to show volumes that the user doesn’t have permission to view.'|t('app'), id: 'showUnpermittedVolumes', name: 'showUnpermittedVolumes', checked: field.showUnpermittedVolumes, }) }} {{ forms.checkboxField({ label: 'Show unpermitted files'|t('app'), instructions: 'Whether to show files that the user doesn’t have permission to view, per the “View files uploaded by other users” permission.'|t('app'), id: 'showUnpermittedFiles', name: 'showUnpermittedFiles', checked: field.showUnpermittedFiles, }) }} {{ forms.checkboxSelectField({ id: 'availableVolumes', name: 'availableVolumes', label: 'Available Volumes'|t('abm-tinymce'), instructions: 'The volumes that should be available when selecting assets (if the selected config has an Image or File button).'|t('abm-tinymce'), options: volumeOptions, values: field.availableVolumes, showAllOption: volumeOptions|length ? true : false }) }} {{ forms.checkboxSelectField({ id: 'availableTransforms', name: 'availableTransforms', label: 'Available Transforms'|t('abm-tinymce'), instructions: 'The transforms that should be available when inserting images.'|t('abm-tinymce'), options: transformOptions, values: field.availableTransforms, showAllOption: transformOptions|length ? true : false }) }}
{{ "Advanced"|t('abm-tinymce') }}