Skip to main content

create_copy_changeset

Function create_copy_changeset 

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

Creates a copy changeset from the current selection.

Extracts the selected text content and creates a TextChangeset with a Copy operation. Returns None if there is no selection or no content to copy.