jQuery Text Editor: Remove pasted formatting that is not allowed
I am using the jQuery Text Editor, a wysiwyg editor to create rich formatted HTML in a textarea input.
I can initiate the editor in my javascript code and allow / disallow certain formatting options. But when I copy & paste text from somewhere else (Word, E-Mail client, etc.), it keeps all the formatting, even if I disallowed this particular formatting option in the editor.
Is there any smart way to strip all HTML formatting that I disallowed? Or even better can I tell the editor to strip disallowed formatting automatically that is pasted?