I don’t think I would be able to do something like that. When I created the plugin, we were not on FontAwesome5, I didn’t find a nice icon for indent right. If you have a
But if you want to change the default button, you have two solutions :
-
You can fork the plugin on github and edit this file : https://github.com/iunctis/discourse-formatting-toolbar/blob/master/assets/javascripts/discourse/initializers/formattingtlb-ui.js.es6#L32
Change floatl to floatr, the texts can easily be changed in your discourse instance after -
Or you can use this:
Hide the float left button with this css
/* FLOAT LEFT BUTTON */
.d-editor-button-bar .floatl_ui_button {
display: none;
}
And import a theme component that will add a floatr button
What you can do is discourse-floatr.zip (1.2 KB)
It’s a theme component I just created on Discourse Theme to add a floatr button with the same icon that the former floatl.