Access the properties of the rich-text editor via a custom app

Hi everyone,

I finally figured out how to customize the rich-text editor by creating a custom app. However, I’m having trouble accessing the right properties of the element in order to add a custom button to the toolbar that adds a class to the selected text. Could someone guide me a little bit?

Thank you very much for your help