Froala WYSIWYG Editor Custom Button Documentation
Below is the basic JS for creating a custom button for the editor. For a working example please see the Custom Buttons Example lined here.