Hi,
Instead of creating new button, you can handle it using the same option by selecting the text and if title is empty
You can refer /libs/clientlibs/granite/richtext/js/rte/plugins/StylesPlugin.js (styles plugin) which will be add/remove with same selection
Hope this helps