This commit is contained in:
Michael Myers
2018-07-24 16:56:27 -04:00
parent cc904ee211
commit 985ea30d36
4 changed files with 62 additions and 3 deletions

View File

@ -16,7 +16,7 @@ export class Bookmark {
constructor(name: string, text: string, relationshipsCount: number) {
this.linkId = relationshipsCount + 1;
this.start = new BookmarkStart(name, text, this.linkId);
this.start = new BookmarkStart(name, this.linkId);
this.text = new TextRun(text);
this.end = new BookmarkEnd(this.linkId);
}
@ -25,7 +25,7 @@ export class Bookmark {
export class BookmarkStart extends XmlComponent {
public linkId: number;
constructor(name: string, text: string, relationshipsCount: number) {
constructor(name: string, relationshipsCount: number) {
super("w:bookmarkStart");
this.linkId = relationshipsCount;