devexpress-richedit
Version:
DevExpress Rich Text Editor is an advanced word-processing tool designed for working with rich text documents.
16 lines (15 loc) • 1.15 kB
JavaScript
import { NoteContinuationSeparatorRun, NoteSeparatorRun } from "../../../../../../common/model/runs/simple-runs";
import { LeafElementDestination } from "../destination";
import { RichUtils } from "../../../../../../common/model/rich-utils";
export class NoteSeparatorDestination extends LeafElementDestination {
async processElementOpen(_reader) {
const run = new NoteSeparatorRun(this.data.subDocumentInfo.positionImporter.currPosition, this.data.subDocumentInfo.paragraphImporter.paragraph, this.data.subDocumentInfo.characterImporter.charPropsBundle);
this.data.subDocumentInfo.characterImporter.addRun(run, RichUtils.specialCharacters.ETX);
}
}
export class NoteContinuationSeparatorDestination extends LeafElementDestination {
async processElementOpen(_reader) {
const run = new NoteContinuationSeparatorRun(this.data.subDocumentInfo.positionImporter.currPosition, this.data.subDocumentInfo.paragraphImporter.paragraph, this.data.subDocumentInfo.characterImporter.charPropsBundle);
this.data.subDocumentInfo.characterImporter.addRun(run, RichUtils.specialCharacters.EOT);
}
}