Skip to main content
Neha_Gupta1
New Member
Mar 16, 2024 4:10 PM UTC
Question

How to get hyperlinked text from a Text node using figma.mixed

Let’s say you have a text node that says “hi, click here to see my dog”
Now, only the words “click here” are hyperlinked. Rest of the text is simple string.

Now I want to be able to pick this text node and find where there is a hyperlinked text and what’s the hyperlink on that text. How can I get that text and it’s hyperlink?

Figma API has a property for TextNode called hyperlink and in this situation it returns a Figma.mixed object.

How do I get what I need out of this??

This topic has been closed for replies.

4 replies

tank666
Mar 16, 2024 4:33 PM UTC
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Neha_Gupta1
New Member
Mar 16, 2024 4:52 PM UTC

getRangeHyperlink also returns a Symbol(Figma.mixed)
What I’m trying to understand is how to get the information I need out of this Symbol?

tank666
Mar 16, 2024 5:18 PM UTC
UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Neha_Gupta1
New Member
Mar 16, 2024 6:17 PM UTC

Got it… thanks a lot.