diff --git a/apps/web/src/components/blocksuite/header/header-right-items/EditorOptionMenu.tsx b/apps/web/src/components/blocksuite/header/header-right-items/EditorOptionMenu.tsx index 872c33df4a..9a4ea6783a 100644 --- a/apps/web/src/components/blocksuite/header/header-right-items/EditorOptionMenu.tsx +++ b/apps/web/src/components/blocksuite/header/header-right-items/EditorOptionMenu.tsx @@ -84,7 +84,7 @@ export const EditorOptionMenu = () => { { // @ts-expect-error - globalThis.editor.contentParser.onExportHtml(); + globalThis.currentEditor.contentParser.onExportHtml(); }} icon={} iconSize={[20, 20]} @@ -94,7 +94,7 @@ export const EditorOptionMenu = () => { { // @ts-expect-error - globalThis.editor.contentParser.onExportMarkdown(); + globalThis.currentEditor.contentParser.onExportMarkdown(); }} icon={} iconSize={[20, 20]}