Skip to main content
Solved

Retrieving multiple TextStyleIds from text.node with (figma.mixed)


Jonas_Zwierzynski

Hey Figma community. Im trying to get the textStyleIds from a text.node that has the value (Figma.mixed) to map them with different textStyleIds. If the textbox has only a single textStyleId it returns a string and im able to map that to a new textStyleId (string as well).

From documentation i figured it should be done with getRangeTextStyleId. For whatever reason i dont get it to work. Can anyone help me or provie code so i can get the different textStyleIds from a selected text.node so im able the map them to new values? Thanks in advance! 🙂

Best answer by tank666

View original
This topic has been closed for comments

2 replies

tank666
  • 4863 replies
  • Answer
  • August 15, 2023

Jonas_Zwierzynski

Thanks, This


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