Improve bold/italic/underline action when celection is collapsed