My client wants a rich text editor, but a lot of the content of the site will be coming from Word documents, and he also wants clean HTML, so he's insisting that all text be pasted as text only, and reformatted by hand. I agree with him, as even the "Paste from Word" command leaves a lot of messy styling in.
I've discovered that with a 1-line code change, CKEditor does exactly what we want.
The change is to the file: "sites/all/modules/wysiwyg/editors/js/ckeditor-3.0.js"
The line I added is "CKEDITOR.config.forcePasteAsPlainText = true;":
/**
* Attach this editor to a target element.
*/
Drupal.wysiwyg.editor.attach.ckeditor = function(context, params, settings) {
// Apply editor instance settings.
CKEDITOR.config.forcePasteAsPlainText = true;
CKEDITOR.config.customConfig = '';
This does the job, but would probably be better in the theme, rather than hacking the module.
Better still, wouldn't it be a useful feature to have a "force paste as text" checkbox in the WYSIWYG module? I can't be the only one who would find this useful.
Anyway, posting here in case it helps anyone.
James