I am trying to allow my users to paste content from word processors (MS Word, Open Office..) and have it process the garbage markup into valid html.
Here is a fiddle for my code: http://fiddle.tinymce.com/xLeaab
I want to preserve:
- bold, italic, strike through (done)
- tables and lists (done)
- font color, text highlight and alignment (please help)
FYI - I've been looking at these questions on Stackoverflow as part of my current solution, however Im not the best with RegEx so Im having a hard time:
paste_word_valid_elements
. Her Fiddle already takes care of many of her desires. Just font-color, highlight, and alignment are not rendered properly. – Dave Alperovich