Editing text_editor content with buttons

Hey! I’m new to iced and was wondering if this particular functionality has already been addressed by someone:

I have a button (to say bold text). Is there any way to change the content of the text editor if this particular button is pressed?