Expand description
Clipboard content types for copy/paste operations
Contains ClipboardContent and StyledTextRun, used by clipboard and
changeset modules.
Rich-text status: StyledTextRun, StyledTextRunVec and the
ClipboardContent.styled_runs field are FFI-exported (api.json), but the
rich path is only half-wired: the live clipboard producers build
styled_runs empty (window.rs::get_selected_content_for_clipboard,
paste in common/event.rs) and the platform clipboard backends write only
plain_text. Fully wiring it means (a) extracting per-run style from the
styled DOM when copying and (b) adding an HTML/RTF format to each platform’s
clipboard write (and reading it back on paste). to_html() below is the
retained consumer for that future format. Until then the FFI surface is
kept (it is public API) but styled_runs stays empty.
Structs§
- Clipboard
Content - Clipboard content with both plain text and styled (HTML) representation
- Styled
Text Run - Styled text run for rich clipboard content
- Styled
Text RunVec - Styled
Text RunVec Slice - C-compatible slice type for
$struct_name. This is a non-owning view into a Vec’s data.