From 34aba0443e00315051806627d8313b3086997d25 Mon Sep 17 00:00:00 2001 From: Steven Hugg Date: Fri, 10 Jul 2020 15:19:01 -0500 Subject: [PATCH] markdown: using iframe --- src/platform/markdown.ts | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/src/platform/markdown.ts b/src/platform/markdown.ts index 81d1c678..0bfba258 100644 --- a/src/platform/markdown.ts +++ b/src/platform/markdown.ts @@ -4,13 +4,16 @@ import { PLATFORMS } from "../common/emu"; import { Platform } from "../common/baseplatform"; class MarkdownPlatform implements Platform { - mainElement; - htmlDiv; + mainElement : HTMLElement; + iframe : HTMLIFrameElement; constructor(mainElement:HTMLElement) { this.mainElement = mainElement; - this.htmlDiv = $('
').appendTo(mainElement); - $(mainElement).css('overflowY', 'auto'); + this.iframe = $('