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