Skip to main content

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​
ParameterType
textManagerITextManager
initDataInsertLineBrakeCmdData
Returns​

InsertLineBrakeCmd

Methods​

execute()​
execute(): boolean;

Executes the command.

Returns​

boolean

true if changes were made, false otherwise.

Implementation of​

ICommand.execute


InsertLineBrakeCmdData​

Data required to initialize the command.

Constructors​

Constructor​
new InsertLineBrakeCmdData(isNewLineEnabled): InsertLineBrakeCmdData;
Parameters​
ParameterType
isNewLineEnabledboolean
Returns​

InsertLineBrakeCmdData

Properties​

isNewLineEnabled​
isNewLineEnabled: boolean;

Indicates that new line insertion is enabled.

Was this page helpful?