Hi there, I'm using CKEditor 4.1 with Drupal 7, and I'm working on creating a painless MS Word --> CMS process for a client of mine who who does online publishing and prefers to author their content in a desktop word processor first. I've searched around for answer for my question and browsed through the API docs a bit, but forgive me if the answer is someplace obvious and I missed it!
Right now, when I paste from Word into CKEditor, text highlighting (i.e. background-color) is removed. I'm attempting to find a way to preserve that highlighting. However, I don't want to do this with inline styles, but using classes instead. I'm looking for a way to identify when an element has a style attribute with a background-color value, apply a CSS class to that element, and remove the background-color value altogether.
I know there are various workarounds with the same end result (having the client apply highlighting in CKEditor, etc.) but I'm attempting to polish the process as much as possible for them and save duplication of effort. Can anyone point me towards the right spot in the API to investigate further, or suggest an approach?