correct sdt objects of table of contents

This commit is contained in:
Sergio Mendonça
2018-09-20 10:47:10 -03:00
parent 4805efad2e
commit 1cff104bae
4 changed files with 73 additions and 45 deletions

View File

@ -0,0 +1,12 @@
import { Paragraph } from "file/paragraph";
import { XmlComponent } from "file/xml-components";
export class SdtContent extends XmlComponent {
constructor() {
super("w:sdtContent");
}
public addGeneratedContent(paragraph: Paragraph): void {
this.root.splice(this.root.length - 1, 0, paragraph);
}
}