Closed ChenSWD closed 2 years ago
This is already supported by the hyperlink
property, or using setRangeHyperlink()
:
https://www.figma.com/plugin-docs/api/TextSublayer/#hyperlink https://www.figma.com/plugin-docs/api/TextSublayer/#setrangehyperlink
To demonstrate, select any text node, and run:
figma.currentPage.selection[0].hyperlink = { type: 'URL', value: 'https://www.google.com' }
I want to add a hyperlink to text,but I can't find a function to set