updated clone deep dependency and make fields dirty to be updated when word is opened

This commit is contained in:
Sergio Mendonça
2018-09-21 10:26:28 -03:00
parent 17d696e33a
commit 8b463b3bb6
9 changed files with 56 additions and 30 deletions

View File

@ -35,6 +35,7 @@ const DEFAULT_TOC = {
{
_attr: {
"w:fldCharType": "begin",
"w:dirty": true,
},
},
],

View File

@ -25,7 +25,7 @@ export class TableOfContents extends XmlComponent {
// this.tocProperties = tocProperties || new TableOfContentsProperties();
const beginParagraph = new Paragraph();
const beginRun = new Run();
beginRun.addChildElement(new Begin());
beginRun.addChildElement(new Begin(true));
beginRun.addChildElement(this.instruction);
beginRun.addChildElement(new Separate());
beginParagraph.addRun(beginRun);