Tinymce Remove-invalid-format-link

I’ve a website with TinyMCE. My users can copy-paste things into this editor with wrong format (spans, tables, wrong-font-families, MS-word-format, etc. etc.).

The solution for me is a function thats cleanups all format, EXEPT allowed format: bold,italic,underline,strikethrough,forecolor,backcolor.

I’m searching for a javascript function like this way:

<form method=”post” action=”somepage”>
<textarea name=”content” style=”width:100%”>
</textarea>
</form>
<div>
<a href=”#” onclick=”removeWrongFormat();return false;”>[Remove wrong format]</a>
</div>

Leave a Reply

Your email address will not be published. Required fields are marked *