Skip to main content

split_node_containing_query

Function split_node_containing_query 

Source
pub fn split_node_containing_query(
    text_match: &MenuTextMatch,
) -> Result<Option<NodeRef>, LexicalError>
Expand description

$splitNodeContainingQuery(match): splits the text node at the caret so the query, with its trigger, is a node of its own, and returns it; None without a collapsed range selection in simple text, or when the query starts before the node.