Document execcommand callback. Toggles the style on and off of a selected part of text.