There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix: globalThis.editor is undefined (#1590)
hanchayi1a0abbf76eeb
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.tsxindex 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 = () => {<MenuItemonClick={() => {// @ts-expect-error- globalThis.editor.contentParser.onExportHtml();+ globalThis.currentEditor.contentParser.onExportHtml();}}icon={<ExportToHtmlIcon />}iconSize={[20, 20]}@@ -94,7 +94,7 @@ export const EditorOptionMenu = () => {<MenuItemonClick={() => {// @ts-expect-error- globalThis.editor.contentParser.onExportMarkdown();+ globalThis.currentEditor.contentParser.onExportMarkdown();}}icon={<ExportToMarkdownIcon />}iconSize={[20, 20]}