Skip to main content
Jonas_Zwierzynski
New Member
Aug 15, 2023 11:25 AM UTC
Solved

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

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! 🙂

This topic has been closed for replies.
tank666
tank666Solution
Aug 15, 2023 12:08 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

2 replies

tank666
tank666Solution
Aug 15, 2023 12:08 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
Jonas_Zwierzynski
New Member
Aug 15, 2023 2:28 PM UTC

Thanks, This