Files
docx-js/src/file/track-revision/track-revision-components/deleted-text.ts

13 lines
389 B
TypeScript
Raw Normal View History

2022-06-15 00:07:12 +01:00
import { TextAttributes } from "file/paragraph/run/text-attributes";
import { SpaceType } from "file/space-type";
2022-06-15 00:07:12 +01:00
import { XmlComponent } from "file/xml-components";
export class DeletedText extends XmlComponent {
constructor(text: string) {
super("w:delText");
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
this.root.push(text);
}
}