Skip to main content
Question

how to obtain all textStyles in teamLibrary?

  • February 21, 2025
  • 1 reply
  • 38 views

Dangxiaorui

There is a node in the current file that uses local textStyle. I want to replace it with textStyle from teamLibrary.
At present, I can obtain all textStyles locally based on getLocalTextStylesSync(). So how can I obtain all textStyles in teamLibrary?

This topic has been closed for replies.

1 reply

tank666
  • 4873 replies
  • February 21, 2025

getLocalTextStylesSync(). So how can I obtain all textStyles in teamLibrary?

getLocalTextStylesAsync()

Open the library file and use the above method from the Plugin API or use the REST API (GET team styles and/orĀ GET file styles endpoints).