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);
}
},
});