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(editor): should not select or open latex editor when readonly (#10601)
donteatfriedrice40351295c9d2
diff --git a/blocksuite/affine/block-latex/src/latex-block.ts b/blocksuite/affine/block-latex/src/latex-block.tsindex 6c988f078d..04392c6696 100644--- a/blocksuite/affine/block-latex/src/latex-block.ts+++ b/blocksuite/affine/block-latex/src/latex-block.ts@@ -76,6 +76,11 @@ export class LatexBlockComponent extends CaptionedBlockComponent<LatexBlockModel);this.disposables.addFromEvent(this, 'click', () => {+ // should not open editor or select block in readonly mode+ if (this.doc.readonly) {+ return;+ }+if (this.isBlockSelected) {this.toggleEditor();} else {