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) 739 B
import { MapCreator } from '../../../../../../../common/utils/map-creator'; import { ElementDestination } from '../../destination'; import { DefaultRunPropertiesDestination } from './char/default-run-properties-destination'; import { DefaultParagraphPropertiesDestination } from './par/default-paragraph-properties-destination'; export class DocumentDefaultsDestination extends ElementDestination { get elementHandlerTable() { return DocumentDefaultsDestination.handlerTable; } } DocumentDefaultsDestination.handlerTable = new MapCreator() .add('pPrDefault', (data) => new DefaultParagraphPropertiesDestination(data)) .add('rPrDefault', (data) => new DefaultRunPropertiesDestination(data)) .get();