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) 593 B
import { StringUtils } from '@devexpress/utils/lib/utils/string'; import { LeafElementDestination } from '../../destination'; export class ParagraphStyleReferenceBaseDestination extends LeafElementDestination { async processElementOpen(reader) { const value = reader.getAttributeNS('val', this.data.constants.wordProcessingNamespaceConst); if (!StringUtils.isNullOrEmpty(value)) { const style = this.data.stylesImporter.paragraphManager.getStyleById(value); if (style) this.assignParagraphStyle(style); } } }