diff --git a/frontend/src/components/pure/ms-minder-editor/minderEditor.vue b/frontend/src/components/pure/ms-minder-editor/minderEditor.vue index f2aac7add1..25cf9136d6 100644 --- a/frontend/src/components/pure/ms-minder-editor/minderEditor.vue +++ b/frontend/src/components/pure/ms-minder-editor/minderEditor.vue @@ -59,7 +59,7 @@ tagProps, viewMenuProps, } from './props'; - import { isNodeInMinderView } from './script/tool/utils'; + import { isDisableNode, isNodeInMinderView } from './script/tool/utils'; const emit = defineEmits<{ (e: 'moldChange', data: number): void; @@ -132,7 +132,9 @@ const { unbindShortcuts } = useShortCut( { input: () => { - window.minderEditor.editText(); + if (window.minder._status !== 'readonly' && !isDisableNode(window.minder)) { + window.minderEditor.editText(); + } }, undo: () => { window.minderHistory?.undo();