feat: transfer comments property to File CoreProperties like numbering.
This commit is contained in:
@ -71,6 +71,10 @@ export class File {
|
||||
},
|
||||
);
|
||||
|
||||
if (options.comments) {
|
||||
this.comments = options.comments;
|
||||
}
|
||||
|
||||
this.fileRelationships = new Relationships();
|
||||
this.customProperties = new CustomProperties(options.customProperties ?? []);
|
||||
this.appProperties = new AppProperties();
|
||||
@ -136,9 +140,6 @@ export class File {
|
||||
this.footnotesWrapper.View.createFootNote(parseFloat(key), options.footnotes[key].children);
|
||||
}
|
||||
}
|
||||
if (fileProperties.template && fileProperties.template.comments) {
|
||||
this.comments = fileProperties.template.comments;
|
||||
}
|
||||
}
|
||||
|
||||
private addSection({ headers = {}, footers = {}, children, properties }: ISectionOptions): void {
|
||||
|
Reference in New Issue
Block a user