fix: plain editor font changing (#880)
This commit is contained in:
@@ -163,6 +163,12 @@ export const ChangeEditorMenu: FunctionComponent<ChangeEditorMenuProps> = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const selectEditor = async (itemToBeSelected: EditorMenuItem) => {
|
const selectEditor = async (itemToBeSelected: EditorMenuItem) => {
|
||||||
|
const areBothEditorsPlain = !currentEditor && !itemToBeSelected.component;
|
||||||
|
|
||||||
|
if (areBothEditorsPlain) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let shouldSelectEditor = true;
|
let shouldSelectEditor = true;
|
||||||
|
|
||||||
if (itemToBeSelected.component) {
|
if (itemToBeSelected.component) {
|
||||||
|
|||||||
Reference in New Issue
Block a user