From 96e4e90a61e07c1bcade50eca4e0bfe0b5c35084 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Thu, 24 Jun 2021 19:15:07 +0200 Subject: [PATCH] Make EditingArea intialize this.fieldHTML, not Editable.fieldHTML --- ts/editor/editingArea.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/editor/editingArea.ts b/ts/editor/editingArea.ts index 35ac59fe7..6dbc222cd 100644 --- a/ts/editor/editingArea.ts +++ b/ts/editor/editingArea.ts @@ -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) {