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.