Skip to main content

create_paste_changeset

Function create_paste_changeset 

Source
pub fn create_paste_changeset(
    target: DomNodeId,
    timestamp: Instant,
    layout_window: &LayoutWindow,
) -> Option<TextChangeset>
Expand description

Creates a paste changeset at the current cursor position.

Note: The actual clipboard content must be provided by the caller (typically event_v2.rs), as clipboard access is platform-specific and not available in the layout engine. This function currently returns None and paste operations are initiated from event_v2.rs with pre-read clipboard content.