mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
refactor(editor): set readonly (#9475)
This commit is contained in:
@@ -668,7 +668,7 @@ export class StarterDebugMenu extends ShadowlessElement {
|
||||
|
||||
private _toggleReadonly() {
|
||||
const doc = this.doc;
|
||||
doc.awarenessStore.setReadonly(doc.blockCollection, !doc.readonly);
|
||||
doc.readonly = !doc.readonly;
|
||||
}
|
||||
|
||||
private async _toggleStyleDebugMenu() {
|
||||
|
||||
Reference in New Issue
Block a user