Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export class FormattingToolbarView {

pmView.dom.addEventListener("mousedown", this.viewMousedownHandler);
pmView.dom.addEventListener("mouseup", this.viewMouseupHandler);
pmView.dom.addEventListener("dragstart", this.dragstartHandler);
pmView.dom.addEventListener("dragstart", this.dragHandler);
pmView.dom.addEventListener("dragover", this.dragHandler);
Comment thread
matthewlipski marked this conversation as resolved.

pmView.dom.addEventListener("focus", this.focusHandler);
pmView.dom.addEventListener("blur", this.blurHandler);
Expand All @@ -70,7 +71,7 @@ export class FormattingToolbarView {
};

// For dragging the whole editor.
dragstartHandler = () => {
dragHandler = () => {
if (this.formattingToolbarState?.show) {
this.formattingToolbarState.show = false;
this.updateFormattingToolbar();
Expand Down Expand Up @@ -177,7 +178,8 @@ export class FormattingToolbarView {
destroy() {
this.pmView.dom.removeEventListener("mousedown", this.viewMousedownHandler);
this.pmView.dom.removeEventListener("mouseup", this.viewMouseupHandler);
this.pmView.dom.removeEventListener("dragstart", this.dragstartHandler);
this.pmView.dom.removeEventListener("dragstart", this.dragHandler);
this.pmView.dom.removeEventListener("dragover", this.dragHandler);

this.pmView.dom.removeEventListener("focus", this.focusHandler);
this.pmView.dom.removeEventListener("blur", this.blurHandler);
Expand Down