Formatting toolbar
I wanted to create one plugin for other users with some basic options : underline, color, a float (see the screen), center, align to right and justify. I also added a img button because it's easier to use one with the float button.
Here an example of the possibility provided by this plugin :
And in the composer you'll have new buttons :
Link
https://github.com/iunctis/discourse-formatting-toolbar
Tips
How to install a plugin : a guide by @techAPJ
The [floatr][/floatr]
bbcode has been created but I didn't add a button, it doesn't feel necessary.
If you want to change the margin in the float, you can go to the Customize section in your admin panel, create a new css page and add this and change the value in the margin part :
.floatl {
float:left;
margin-right:15px;
}
.floatr {
float:right;
margin-left:15px;
}