mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Move setting inCodable to false into codable
This commit is contained in:
parent
1e94f7f16f
commit
b6dfbcbc20
2 changed files with 1 additions and 6 deletions
|
@ -57,12 +57,6 @@ export class Editable extends HTMLElement {
|
|||
this.setAttribute("contenteditable", "");
|
||||
}
|
||||
|
||||
focus(): void {
|
||||
super.focus();
|
||||
// TODO
|
||||
// inCodable.set(false);
|
||||
}
|
||||
|
||||
caretToEnd(): void {
|
||||
caretToEnd(this);
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue