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