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