Skip to main content

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

InsertNewLineCmd

Methods​

execute()​
execute(): boolean;

Executes the command.

Returns​

boolean

true if changes were made, false otherwise.

Implementation of​

ICommand.execute


InsertNewLineCmdData​

Data required to initialize the command.

Constructors​

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

InsertNewLineCmdData

Properties​

isNewLineEnabled​
isNewLineEnabled: boolean;

Indicates that new line insertion is enabled.

Was this page helpful?