Unverified Commit 1eb85470 authored by superewald's avatar superewald Committed by GitHub

custom backend editor fixes

The ActiveEditor.js doesn't refuse to load a custom editor anymore.
parent 8a41fd73
...@@ -2,13 +2,13 @@ export default { ...@@ -2,13 +2,13 @@ export default {
methods: { methods: {
getCurrentEditor() { getCurrentEditor() {
const configuredEditor = window.AsgardCMS.editor; const configuredEditor = window.AsgardCMS.editor;
if (configuredEditor === undefined || configuredEditor === 'ckeditor') {
return 'ckeditor';
}
if (configuredEditor === 'simplemde') { if (configuredEditor === 'simplemde') {
return 'markdown-editor'; return 'markdown-editor';
} }
if (configuredEditor === 'ckeditor') { return configuredEditor;
return 'ckeditor';
}
return 'ckeditor';
}, },
}, },
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment