Fix editor pasting with attributes