pub fn insert_str(
value: &str,
state: &TextEditState,
text: &str,
now: f32,
) -> (String, TextEditState)Expand description
Insert text at the cursor, replacing any active selection first.
Coalesces with immediately-preceding plain insertions into one undo
unit (D116) — only when there was no active selection at insert time;
replacing a selection always starts a fresh undo entry.