Back to API Reference
Class

ClipboardModifierBindMap

static

Static registry of per-type clipboard schemas: which HTML elements, Markdown delimiters, and canonical source tag each BaseModifier type speaks. The schema is type-level metadata — instances have no say in it — so it lives here, not on the modifier: modifiers stay clipboard-ignorant, registration is explicit (no assembly scan, nothing for IL2CPP stripping to break), and the first paste costs nothing. Built-ins are pre-registered; integrator modifiers join via Register<T>.

Remarks

Consulted by TagHtmlClipboardAdapter and MarkdownClipboardAdapter on copy (schema of each range's modifier) and on paste, where the canonical tag / marker of each format is matched against the destination's styles: a format the field renders is kept, one it does not is stripped to plain.

Nested Types

public static IReadOnlyList<BindEntry> Entries{ get }

Every registered modifier schema entry, in registration order.

public static ModifierClipboardSchema GetSchema()

The schema registered for the modifier's type, or.

public static ModifierClipboardSchema GetSchema()

The schema registered for the type, or.

public static void Register()

Registers a clipboard schema for a modifier type. Built-ins are pre-registered; call once (a static initializer is a good place) for an integrator modifier — without registration its ranges copy as plain text and rich pastes strip its formatting to plain text. A schema needs a CanonicalTagName or MatchesSourceTagName to land — anything else is rejected with a warning; repeat registrations of the same type are no-ops. Main thread only.

public static void EnsureInitialized()

Forces built-in registration if it has not happened yet. Idempotent.