updateButtonState on clicking editor field
This commit is contained in:
parent
bc7a1d12cd
commit
a19bc2d012
@ -138,6 +138,7 @@ export class EditingArea extends HTMLDivElement {
|
||||
this.addEventListener("paste", onPaste);
|
||||
this.addEventListener("copy", onCutOrCopy);
|
||||
this.addEventListener("oncut", onCutOrCopy);
|
||||
this.addEventListener("click", updateButtonState);
|
||||
|
||||
const baseStyleSheet = this.baseStyle.sheet as CSSStyleSheet;
|
||||
baseStyleSheet.insertRule("anki-editable {}", 0);
|
||||
@ -152,6 +153,7 @@ export class EditingArea extends HTMLDivElement {
|
||||
this.removeEventListener("paste", onPaste);
|
||||
this.removeEventListener("copy", onCutOrCopy);
|
||||
this.removeEventListener("oncut", onCutOrCopy);
|
||||
this.removeEventListener("click", updateButtonState);
|
||||
}
|
||||
|
||||
initialize(color: string, content: string): void {
|
||||
|
Loading…
Reference in New Issue
Block a user