Make EditingArea intialize this.fieldHTML, not Editable.fieldHTML

This commit is contained in:
Henrik Giesel 2021-06-24 19:15:07 +02:00
parent 0e3ada4fcf
commit 96e4e90a61

View File

@ -92,7 +92,7 @@ export class EditingArea extends HTMLDivElement {
initialize(color: string, content: string): void { initialize(color: string, content: string): void {
this.setBaseColor(color); this.setBaseColor(color);
this.editable.fieldHTML = content; this.fieldHTML = content;
} }
setBaseColor(color: string): void { setBaseColor(color: string): void {
@ -155,7 +155,7 @@ export class EditingArea extends HTMLDivElement {
this.editable.hidden = false; this.editable.hidden = false;
} else { } else {
this.editable.hidden = true; this.editable.hidden = true;
this.codable.setup(this.fieldHTML); this.codable.setup(this.editable.fieldHTML);
} }
if (hadFocus) { if (hadFocus) {