UNPKG

devexpress-richedit

Version:

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

16 lines (15 loc) 720 B
import { __awaiter } from "tslib"; import { StringUtils } from '@devexpress/utils/lib/utils/string'; import { LeafElementDestination } from '../destination'; export class RunStyleReferenceBaseDestination extends LeafElementDestination { processElementOpen(reader) { return __awaiter(this, void 0, void 0, function* () { const styleId = reader.getAttributeNS('val', this.data.constants.wordProcessingNamespaceConst); if (!StringUtils.isNullOrEmpty(styleId)) { const style = this.data.stylesImporter.characterManager.getStyleById(styleId); if (style) this.assignCharacterStyle(style); } }); } }