changed the plugin to reformat highlighted text in place