Files
docx-js/src/file/track-revision/track-revision-components/deleted-text.ts
2022-10-29 03:10:29 +01:00

13 lines
395 B
TypeScript

import { TextAttributes } from "@file/paragraph/run/text-attributes";
import { SpaceType } from "@file/shared";
import { XmlComponent } from "@file/xml-components";
export class DeletedText extends XmlComponent {
public constructor(text: string) {
super("w:delText");
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
this.root.push(text);
}
}