UNPKG

devexpress-richedit

Version:

DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.

13 lines (12 loc) 484 B
import { RichUtils } from '../../model/rich-utils'; import { CommandBase } from '../command-base'; import { SimpleCommandState } from '../command-states'; export class InsertLineBreakCommand extends CommandBase { getState() { return new SimpleCommandState(this.isEnabled()); } executeCore(_state, options) { this.insertTextWithSelection(options.intervalsInfo.subDocInterval, RichUtils.specialCharacters.LineBreak); return true; } }