InsertTextCommandOptions
interface
Interface with parameters for executing InsertTextCommand.
Both range and selection parameters are used for defining selection but should not be used together. If both are defined, only selection will be considered.
Properties
range : ModelRange | undefinedmodule:typing/inserttextcommand~InsertTextCommandOptions#rangeThe range in which the text is inserted. Defaults to the first range in the current selection.
resultRange : ModelRange | undefinedmodule:typing/inserttextcommand~InsertTextCommandOptions#resultRangeThe range where the selection should be placed after the insertion. If not specified, the selection will be placed right after the inserted text.
selection : ModelSelection | ModelDocumentSelection | undefinedmodule:typing/inserttextcommand~InsertTextCommandOptions#selectionThe selection in which the text is inserted. Inserting a text into a selection deletes the current content within selection ranges. If the selection is not specified, the current selection in the model will be used instead.
text : string | undefinedmodule:typing/inserttextcommand~InsertTextCommandOptions#textThe text to be inserted.