Hey everyone,
Using a combination of forcePasteAsPlainText and enterMode, I can get very clean HTML out of whatever people paste into the CKEditor field body -- non-formatted HTML separated by paragraph breaks only.
However the "holy grail" that I am after is being able to forcePasteAsPlainText, but preserve bold, strong, italic and em tags. Has anyone been able to get ckEditor to do this?
The reason I'd like to do this is that my client is a small newspaper, and they are pasting stories from InDesign. Stripping out all of the InDesign is essential, but this also strips out bold and italics, which no one here has time to recreate.
I was looking at the forcePasteAsPlainText code and there didn't seem to me to be an obvious place where you could create exceptions. If anyone's got some insight even to where I'd begin altering the code OR just using a combination of settings to get what I want, I'd be grateful!
Thanks everyone,
Rob
Using a combination of forcePasteAsPlainText and enterMode, I can get very clean HTML out of whatever people paste into the CKEditor field body -- non-formatted HTML separated by paragraph breaks only.
However the "holy grail" that I am after is being able to forcePasteAsPlainText, but preserve bold, strong, italic and em tags. Has anyone been able to get ckEditor to do this?
The reason I'd like to do this is that my client is a small newspaper, and they are pasting stories from InDesign. Stripping out all of the InDesign is essential, but this also strips out bold and italics, which no one here has time to recreate.
I was looking at the forcePasteAsPlainText code and there didn't seem to me to be an obvious place where you could create exceptions. If anyone's got some insight even to where I'd begin altering the code OR just using a combination of settings to get what I want, I'd be grateful!
Thanks everyone,
Rob