Whenever someone pastes XML (including, and most likely, HTML) into the editor, strip out all tags except paragraph tags. If the paragraph tags aren't properly opened and closed then strip them out.
At the moment, pasting XML (HTML) into the editor is messing up the underlying structure.
Whenever someone pastes XML (including, and most likely, HTML) into the editor, strip out all tags except paragraph tags. If the paragraph tags aren't properly opened and closed then strip them out.
At the moment, pasting XML (HTML) into the editor is messing up the underlying structure.