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 {
methods: {
getCurrentEditor() {
const configuredEditor = window.AsgardCMS.editor;
if (configuredEditor === undefined || configuredEditor === 'ckeditor') {
return 'ckeditor';
}
if (configuredEditor === 'simplemde') {
return 'markdown-editor';
}
if (configuredEditor === 'ckeditor') {
return 'ckeditor';
}
return 'ckeditor';
return configuredEditor;
},
},
};
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