How do I call the editor function to insert a style?

I’m working on a plugin and want to understand how to call a function that transfers styles from local storage to the selected object.

Hello @Mykyta,

Are you looking for this:

const globalStyles = localStorage.getItem('cwicly-global-styles');

Or have I misunderstood the question?

@Louis Thank you, I mean the paste style function.

That is, I need to define the currently active object and apply this function which will insert the styles from the local storage.