devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
14 lines (13 loc) • 608 B
JavaScript
import { ParagraphPropertyDescriptor } from '../../model/paragraph/paragraph-properties';
import { LineSpacingParagraphCommandBase } from './add-spacing-after-paragraph-command';
export class RemoveSpacingAfterParagraphCommand extends LineSpacingParagraphCommandBase {
getDescriptor() {
return ParagraphPropertyDescriptor.spacingAfter;
}
DEPRECATEDConvertOptionsParameter(parameter) {
return parameter != null ? parameter : 0;
}
isEnabled() {
return super.isEnabled() && this.inputPosition.getMergedParagraphPropertiesFull().spacingAfter > 0;
}
}