mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-20 07:47:19 +08:00
refactor(editor): set readonly (#9475)
This commit is contained in:
@@ -226,10 +226,7 @@ export class TextRenderer extends WithDisposable(ShadowlessElement) {
|
||||
this.disposables.add(() => {
|
||||
doc.blockCollection.clearQuery(this._query);
|
||||
});
|
||||
this._doc.awarenessStore.setReadonly(
|
||||
this._doc.blockCollection,
|
||||
true
|
||||
);
|
||||
this._doc.readonly = true;
|
||||
this.requestUpdate();
|
||||
if (this.state !== 'generating') {
|
||||
this._clearTimer();
|
||||
|
||||
Reference in New Issue
Block a user