Skip to content

Commit

Permalink
Merge pull request #513 from superewald/fixes-506-active-editor
Browse files Browse the repository at this point in the history
custom backend editor fix
  • Loading branch information
nWidart authored Apr 19, 2018
2 parents 77487a3 + 1eb8547 commit 22ccee9
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 22ccee9

Please sign in to comment.