Using the pasteDeniedAttrs option you can specify attributes that are removed when pasting something into the rich text editor. By default the removed attributes are class, idand style
class
id
style