UNPKG

devexpress-richedit

Version:

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

14 lines (13 loc) 611 B
import { ParagraphPropertyDescriptor } from '../../model/paragraph/paragraph-properties'; import { LineSpacingParagraphCommandBase } from './add-spacing-after-paragraph-command'; export class RemoveSpacingBeforeParagraphCommand extends LineSpacingParagraphCommandBase { getDescriptor() { return ParagraphPropertyDescriptor.spacingBefore; } DEPRECATEDConvertOptionsParameter(parameter) { return parameter != null ? parameter : 0; } isEnabled() { return super.isEnabled() && this.inputPosition.getMergedParagraphPropertiesFull().spacingBefore > 0; } }