diff --git a/ts/editor/codable.ts b/ts/editor/codable.ts index b1fe27e6a..c0d78a6a6 100644 --- a/ts/editor/codable.ts +++ b/ts/editor/codable.ts @@ -42,6 +42,6 @@ export class Codable extends HTMLTextAreaElement { this.codeMirror = undefined; const doc = parser.parseFromString(this.value, "text/html"); - return doc.documentElement.textContent!; + return doc.documentElement.innerHTML; } } diff --git a/ts/editor/editingArea.ts b/ts/editor/editingArea.ts index 301403c59..5d217aee9 100644 --- a/ts/editor/editingArea.ts +++ b/ts/editor/editingArea.ts @@ -128,9 +128,7 @@ export class EditingArea extends HTMLDivElement { toggleHtmlEdit(): void { const output = this.codable.toggle(this.fieldHTML); - console.log("succ output", output, this.ord); if (output) { - console.log("writo"); this.fieldHTML = output; } }