IClipboardAdapter
Per-format clipboard pipeline stage. Copy adapters translate the canonical attributed selection into an external format; paste adapters translate that format into attributed destination content. The editor's Copy walks every registered adapter to build a multi-format clipboard write; on Paste the highest-Priority adapter whose Format is present on the clipboard wins.
Remarks
UniTextSource. TagHtmlClipboardAdapter — HTML channel (paste from browsers / Word / Notion; copy as HTML). MarkdownClipboardAdapter — Markdown channel. The built-in set above is fixed per field.Implementations(4)
Types that implement IClipboardAdapter.
public ClipboardFormat Format{ get }Clipboard format this adapter writes on copy and accepts on paste. The editor uses this to populate the multi-format write and to pick the appropriate adapter on paste.
Selection priority on paste. Higher wins. Built-in priorities: UniTextSourceClipboardAdapter=100 (lossless), HTML=50, Markdown=40, PlainTextClipboardAdapter=0 (floor). Custom adapters that should preempt the built-ins use values above 100.
public abstract ClipboardPasteContent DeserializePaste()Deserialize external clipboard payload into visible text and resolved destination spans. Returns to abort and let the pipeline fall through to the next-best format on the clipboard.
