Skip to content

Commit

Permalink
[Fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
Bistard committed Feb 14, 2025
1 parent 8c8b65b commit 1c198ae
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/editor/view/editorViewProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ export class EditorViewProxy extends ProseEventBroadcaster implements IEditorVie
const { id, extension } = extensionInfo;
return [id, extension];
});

this.__registerListeners();
}

// [getter]
Expand Down Expand Up @@ -147,13 +145,4 @@ export class EditorViewProxy extends ProseEventBroadcaster implements IEditorVie
}

// [private helper methods]

private __registerListeners(): void {
/**
* Trigger refresh when the focusibility changes, let the client has a
* chance to do something on decorations or update.
*/
this.__register(this.onDidFocus(() => this._view.dispatch(this._view.state.tr)));
this.__register(this.onDidBlur(() => this._view.dispatch(this._view.state.tr)));
}
}

0 comments on commit 1c198ae

Please sign in to comment.