InsertTextCmd
Classes
InsertTextCmd
The command to insert plain text relative to the current cursor position.
Remarks
if there is selected text, it will be deleted.
Implements
Constructors
Constructor
new InsertTextCmd(textManager, initData): InsertTextCmd;
Parameters
| Parameter | Type |
|---|---|
textManager | ITextManager |
initData | InsertTextCmdData |
Returns
Accessors
text
Get Signature
get text(): string;
Returns
string
Methods
execute()
execute(): boolean;
Executes the command.
Returns
boolean
true if changes were made, false otherwise.
Implementation of
InsertTextCmdData
Data required to initialize the command.
Constructors
Constructor
new InsertTextCmdData(text, isNewLineEnabled): InsertTextCmdData;
Parameters
| Parameter | Type |
|---|---|
text | string |
isNewLineEnabled | boolean |
Returns
Properties
isNewLineEnabled
isNewLineEnabled: boolean;
Indicates that new line insertion is enabled.
text
text: string;
Text for insert.