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) 515 B
import { LeafElementDestination } from '../../../destination'; export class TableCellStyleDestination extends LeafElementDestination { constructor(data, cell) { super(data); this.cell = cell; } async processElementOpen(reader) { const styleName = reader.getAttributeNS('val', this.data.constants.wordProcessingNamespaceConst); const style = this.data.stylesImporter.tableCellStyles[styleName]; if (style) this.cell.style = style; } }