Skip to main content
Question

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


Neha_Gupta1

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 comments

4 replies

tank666
  • 4868 replies
  • March 16, 2024

Neha_Gupta1

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
  • 4868 replies
  • March 16, 2024

Neha_Gupta1

Got it… thanks a lot.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings