Skip to content

Commit 22ccee9

Browse files
authored
Merge pull request #513 from superewald/fixes-506-active-editor
custom backend editor fix
2 parents 77487a3 + 1eb8547 commit 22ccee9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: Modules/Core/Assets/js/mixins/ActiveEditor.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ export default {
22
methods: {
33
getCurrentEditor() {
44
const configuredEditor = window.AsgardCMS.editor;
5+
if (configuredEditor === undefined || configuredEditor === 'ckeditor') {
6+
return 'ckeditor';
7+
}
58
if (configuredEditor === 'simplemde') {
69
return 'markdown-editor';
710
}
8-
if (configuredEditor === 'ckeditor') {
9-
return 'ckeditor';
10-
}
11-
return 'ckeditor';
11+
return configuredEditor;
1212
},
1313
},
1414
};

0 commit comments

Comments
 (0)