{% 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') }}
{{ "The cleanup actions that should be executed on save."|t('abm-tinymce') }}
{{ forms.checkboxField({
label: "Purify HTML"|t('abm-tinymce'),
instructions: 'Removes any potentially-malicious code on save, by running the submitted data through HTML Purifier.'|t('abm-tinymce'),
warning: 'Disable this at your own risk!'|t('abm-tinymce'),
id: 'purifyHtml',
name: 'purifyHtml',
checked: field.purifyHtml,
toggle: 'purifier-config-container'
}) }}
{{ forms.selectField({
label: "HTML Purifier Config"|t('abm-tinymce'),
instructions: "You can save custom {name} configs as {ext} files in {path}."|t('abm-tinymce', {
name: 'HTML Purifier Config',
ext: '`.json`',
path: '`config/htmlpurifier/`'
}) ~
' '~"View available settings"|t('abm-tinymce')~'',
id: 'purifierConfig',
name: 'purifierConfig',
options: purifierConfigOptions,
value: field.purifierConfig
}) }}