updated clone deep dependency and make fields dirty to be updated when word is opened
This commit is contained in:
@ -35,6 +35,7 @@ const DEFAULT_TOC = {
|
||||
{
|
||||
_attr: {
|
||||
"w:fldCharType": "begin",
|
||||
"w:dirty": true,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user