Skip to content

It's unable to create hyperlink via ordinary text. #3265

@marekfilip98

Description

@marekfilip98

Hello, it's unable to create hyperlink via ordinary text. Only if I make URL syntax in TextRun, it becomes clickable, but this part is ignored: link:${this.PROJECT_URL}${contractData.projectId}``

projectUrl: {
          type: PatchType.PARAGRAPH,
          children: [
            new ExternalHyperlink({
              link: `${this.PROJECT_URL}${contractData.projectId}`,
              children: [
                new TextRun({
                  text: `Detail projektu`,
                  font: this.DEFAULT_FONT,
                  size: 24,
                  color: this.DEFAULT_COLOR,
                  underline: {},
                  bold: false,
                }),
              ],
            }),
          ],
        },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions