fix code template and wysiwyg options

This commit is contained in:
Nitwel
2020-09-04 11:37:54 +02:00
parent b9d152a26c
commit 30b10ec8af
2 changed files with 6 additions and 2 deletions

View File

@@ -268,7 +268,8 @@ export default defineComponent({
};
function fillTemplate() {
emit('input', props.template);
const parse = JSON.parse(props.template);
emit('input', parse || props.template);
}
},
});

View File

@@ -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',