Replace the selection (or insert at the caret) with text.
- edit: the text being edited.
- text: the text to insert. Line breaks are removed in a single-line edit.
insert_text :: (edit: *Text_Edit, text: string)
Replace the selection (or insert at the caret) with text.
Parameters
- edit: *Text_Edit
- the text being edited.
- text: string
- the text to insert. Line breaks are removed in a single-line edit.