mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Make EditingArea intialize this.fieldHTML, not Editable.fieldHTML
This commit is contained in:
parent
0e3ada4fcf
commit
96e4e90a61
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ export class EditingArea extends HTMLDivElement {
|
|||
|
||||
initialize(color: string, content: string): void {
|
||||
this.setBaseColor(color);
|
||||
this.editable.fieldHTML = content;
|
||||
this.fieldHTML = content;
|
||||
}
|
||||
|
||||
setBaseColor(color: string): void {
|
||||
|
@ -155,7 +155,7 @@ export class EditingArea extends HTMLDivElement {
|
|||
this.editable.hidden = false;
|
||||
} else {
|
||||
this.editable.hidden = true;
|
||||
this.codable.setup(this.fieldHTML);
|
||||
this.codable.setup(this.editable.fieldHTML);
|
||||
}
|
||||
|
||||
if (hadFocus) {
|
||||
|
|
Loading…
Reference in a new issue