fix(editor): should not select or open latex editor when readonly (#10601)

This commit is contained in:
donteatfriedrice
2025-03-04 07:27:58 +00:00
parent 16fd7bdf20
commit 40351295c9
@@ -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 {