Skip to main content
Solved

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

  • August 15, 2023
  • 2 replies
  • 551 views

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

This topic has been closed for replies.

2 replies

tank666
  • 4873 replies
  • Answer
  • August 15, 2023

Jonas_Zwierzynski

Thanks, This