Skip to main content

create_cut_changeset

Function create_cut_changeset 

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

Creates a cut changeset from the current selection.

Extracts the selected text content and creates a TextChangeset with a Cut operation that will delete the selected text after copying it to clipboard. Returns None if there is no selection or no content to cut.