Add children to hyperlink

This commit is contained in:
Rowan Cockett
2021-08-27 16:53:11 -06:00
parent 9efee181ba
commit c1cc211c7f
4 changed files with 21 additions and 15 deletions

View File

@ -75,7 +75,7 @@ export class Paragraph extends XmlComponent {
for (const element of this.root) {
if (element instanceof ExternalHyperlink) {
const index = this.root.indexOf(element);
const concreteHyperlink = new ConcreteHyperlink(element.options.child, uniqueId());
const concreteHyperlink = new ConcreteHyperlink(element.options.children, uniqueId());
context.viewWrapper.Relationships.createRelationship(
concreteHyperlink.linkId,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",