Skip to content

Commit

Permalink
custom backend editor fixes
Browse files Browse the repository at this point in the history
The ActiveEditor.js doesn't refuse to load a custom editor anymore.
  • Loading branch information
superewald authored Apr 4, 2018
1 parent 8a41fd7 commit 1eb8547
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Modules/Core/Assets/js/mixins/ActiveEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
},
};

0 comments on commit 1eb8547

Please sign in to comment.