Move setting inCodable to false into codable

This commit is contained in:
Henrik Giesel 2021-08-07 19:52:09 +02:00
parent 1e94f7f16f
commit b6dfbcbc20
2 changed files with 1 additions and 6 deletions

View file

@ -57,12 +57,6 @@ export class Editable extends HTMLElement {
this.setAttribute("contenteditable", "");
}
focus(): void {
super.focus();
// TODO
// inCodable.set(false);
}
caretToEnd(): void {
caretToEnd(this);
}

View file

@ -72,6 +72,7 @@ export class Codable extends HTMLTextAreaElement {
setup(html: string): void {
this.fieldHTML = html;
this.codeMirror = CodeMirror.fromTextArea(this, codeMirrorOptions);
this.codeMirror.on("blur", () => inCodable.set(false));
}
teardown(): string {