Fix code interface not staging values in plain text mode

Fixes #3296
This commit is contained in:
rijkvanzanten
2020-12-08 18:32:53 -05:00
parent ea1853acfb
commit d893e44bf7
2 changed files with 7 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ export default defineComponent({
},
language: {
type: String,
default: 'text/plain',
default: 'plaintext',
},
type: {
type: String,
@@ -154,7 +154,7 @@ export default defineComponent({
}
return found;
});
} else if (lang === 'text/plain') {
} else if (lang === 'plaintext') {
codemirror.value.setOption('mode', { name: null });
} else {
await import(`codemirror/mode/${lang}/${lang}.js`);