What would make this extension ever more useful is an option to append the defined html to the selected text - by surrounding the selection with the html tags instead of completely removing it.
This could be an extra setting for the extension, "keepSelection: true"