Skip to main content
Question

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

  • March 16, 2024
  • 4 replies
  • 273 views

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 replies.

4 replies

tank666
  • March 16, 2024

Neha_Gupta1
  • Author
  • New Member
  • March 16, 2024

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

Neha_Gupta1
  • Author
  • New Member
  • March 16, 2024

Got it… thanks a lot.