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(core): inlineEditor on rich-text may be null (#8131)
fundon7d93fae1dde6
diff --git a/packages/frontend/core/src/modules/editor/entities/editor.ts b/packages/frontend/core/src/modules/editor/entities/editor.tsindex 466c5191ed..837ea71d47 100644--- a/packages/frontend/core/src/modules/editor/entities/editor.ts+++ b/packages/frontend/core/src/modules/editor/entities/editor.ts@@ -177,9 +177,9 @@ export class Editor extends Entity {});if (focusAt$.value === null && docTitle) {const title = docTitle.querySelector<- HTMLElement & { inlineEditor: InlineEditor }+ HTMLElement & { inlineEditor: InlineEditor | null }>('rich-text');- title?.inlineEditor.focusEnd();+ title?.inlineEditor?.focusEnd();}const subscription = focusAt$