improved signature for deleted text runs, added demo 54 and added documentation for change tracking
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
import { SpaceType } from "file/space-type";
|
||||
import { XmlAttributeComponent, XmlComponent } from "file/xml-components";
|
||||
|
||||
class TextAttributes extends XmlAttributeComponent<{ readonly space: SpaceType }> {
|
||||
protected readonly xmlKeys = { space: "xml:space" };
|
||||
}
|
||||
|
||||
export class DeletedText extends XmlComponent {
|
||||
constructor(text: string) {
|
||||
super("w:delText");
|
||||
this.root.push(new TextAttributes({ space: SpaceType.PRESERVE }));
|
||||
|
||||
this.root.push(text);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user