mirror of
https://github.com/directus/directus.git
synced 2026-01-27 14:28:12 -05:00
fix code template and wysiwyg options
This commit is contained in:
@@ -268,7 +268,8 @@ export default defineComponent({
|
||||
};
|
||||
|
||||
function fillTemplate() {
|
||||
emit('input', props.template);
|
||||
const parse = JSON.parse(props.template);
|
||||
emit('input', parse || props.template);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
@@ -36,6 +36,7 @@ export default defineInterface(({ i18n }) => ({
|
||||
width: 'half',
|
||||
interface: 'dropdown-multiselect',
|
||||
options: {
|
||||
closeOnContentClick: false,
|
||||
choices: [
|
||||
{
|
||||
value: 'aligncenter',
|
||||
@@ -224,7 +225,6 @@ export default defineInterface(({ i18n }) => ({
|
||||
meta: {
|
||||
width: 'half',
|
||||
interface: 'dropdown',
|
||||
default: 'sans-serif',
|
||||
options: {
|
||||
choices: [
|
||||
{ text: i18n.t('sans_serif'), value: 'sans-serif' },
|
||||
@@ -233,6 +233,9 @@ export default defineInterface(({ i18n }) => ({
|
||||
],
|
||||
},
|
||||
},
|
||||
schema: {
|
||||
default_value: 'sans-serif',
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'customFormats',
|
||||
|
||||
Reference in New Issue
Block a user