import Bind from "@web-atoms/core/dist/core/Bind.js"; import { BindableProperty } from "@web-atoms/core/dist/core/BindableProperty.js"; import XNode from "@web-atoms/core/dist/core/XNode.js"; import PopupService, { PopupWindow } from "@web-atoms/core/dist/web/services/PopupService.js"; import type AtomHtmlEditor from "../AtomHtmlEditor.js"; import CommandButton from "./CommandButton.js"; import HtmlCommands from "./HtmlCommands.js"; 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(