Class InsertTextCmd
The command to insert plain text relative to the current cursor position.
Package: @aurigma/design-atoms-text
Remarks
if there is selected text, it will be deleted.
Constructors
(constructor)(_textManager, _initData)
Constructs a new instance of the InsertTextCmd class
Declaration
constructor(_textManager: ITextManager, _initData: InsertTextCmdData);
Parameters
| Type | Name | Description |
|---|---|---|
| ITextManager | _textManager | |
| InsertTextCmdData | _initData |
Properties
text
Declaration
get text(): string;
Property Value
| Type | Description |
|---|---|
| string |
Methods
execute()
Declaration
execute(): boolean;
Returns
| Type | Description |
|---|---|
| boolean |