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 styled from "@web-atoms/core/dist/style/styled"; const css = styled.css ` & > textarea { min-height: 500px; min-width: 700px; } `.installLocal(); 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(