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