import Bind from "@web-atoms/core/dist/core/Bind"; import { BindableProperty } from "@web-atoms/core/dist/core/BindableProperty"; import XNode from "@web-atoms/core/dist/core/XNode"; import PopupService, { PopupWindow } from "@web-atoms/core/dist/web/services/PopupService"; import type AtomHtmlEditor from "../AtomHtmlEditor"; import CommandButton from "./CommandButton"; import HtmlCommands from "./HtmlCommands"; import "./Source.local.css"; const css = "web-controls-html-editor-source"; async function showDialog(s: AtomHtmlEditor, e: Event): Promise { class SourceDialog extends PopupWindow { @BindableProperty public source: string; protected create(): void { this.source = s.htmlContent; this.render(