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) 566 B
import { StringUtils } from '@devexpress/utils/lib/utils/string'; import { LeafElementDestination } from '../destination'; export class CommentElementDestination extends LeafElementDestination { async processElementOpen(reader) { const id = reader.getAttributeNS('id', this.data.constants.wordProcessingNamespaceConst); if (StringUtils.isNullOrEmpty(id)) return; const comment = this.data.subDocumentInfo.commentsImporter.comments[id]; if (comment) this.assignCommentPosition(comment); } }