devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
13 lines (12 loc) • 774 B
JavaScript
import { MapCreator } from '../../../../../../../../common/utils/map-creator';
import { TabProperties } from '../../../../../../../../common/model/paragraph/paragraph-style';
import { ElementDestination } from '../../../destination';
import { InnerDefaultParagraphPropertiesDestination } from './inner-default-paragraph-properties-destination';
export class DefaultParagraphPropertiesDestination extends ElementDestination {
get elementHandlerTable() {
return DefaultParagraphPropertiesDestination.handlerTable;
}
}
DefaultParagraphPropertiesDestination.handlerTable = new MapCreator()
.add('pPr', (data) => new InnerDefaultParagraphPropertiesDestination(data, data.documentModel.defaultParagraphProperties, new TabProperties()))
.get();