save, restore selection in redactor plugins

doing this will make sure clicking around will not remove user's text selection.