Please see the attached image demonstrating how the CKEditor Paste from word gives you html entities for spaces and the bullet icons, rather than xhtml compliant ul/li tags, which is what TinyMCE does perfectly fine:
http://akb.id.au/sites/akb.id.au/files/rich-text-comparison.gif
Do others have this issue too? Anyone know of a fix. Would really like to continue using CKEDitor over TinyMCE if possible, but this seems fairly critical to me.
Edit: changed the img tag to a URL, as it was a bit large.
Mon, 05/14/2012 - 15:38
#1
Re: paste from word, unordered lists
Hi @alexkb,
fist of all which module for drupal and CKEditor do you use ?
WYSIWYG or one of our modules (http://drupal.org/project/ckeditor, http://ckeditor.com/ckeditor-for-drupal) ?
With our module you can turn off using entities in module configuration.
Do you have the same problems with your Word document at demo page (http://ckeditor.com/demo) ?
Re: paste from word, unordered lists
I've tried both wysiwyg api drupal module as well as the ckeditor drupal module - they both have the same issue. I should also add that even when I use the demo on ckeditor.com/demo, I have the exact same problem, so the issue is not related to drupal or any settings.
To reproduce the problem create a new word document, add any text then create an unordered list with any number of items, then copy and paste it into the "Paste From word" window in CKEDitor. You should see the entity issue, and not clean valid ul with li's.
Hope that can help.
Re: paste from word, unordered lists
Hi,
please check this topic: http://dev.ckeditor.com/ticket/8734. This is known issue in Chrome and Word 2010.
Please write me which browser do you use ?
Re: paste from word, unordered lists
Thanks @mkesicki. Yes, I'm using Chrome, v18.
Is a fix in the pipeline, as Chrome is really on the rise!
Re: paste from word, unordered lists
Chrome paste from Word pastes ordered lists (numbered lists using the "numbered list" button in the Word ribbon) as a series of p tags, not as on ol. The ul's paste just fine.
Any one else see this problem?
Update: Now it's working. I did nothing but use a new Word document with all the style features, including a new ordered list. Pasted as ol/li's. No changes to any aspect of CKEditor config.
Final update, and posting new issue: OK, I found the problem. When I create either an ol or a ul in Word and then indent it using the "indent" button in the Word ribbon, Chrome pastes it as a series of p tags with non-breaking spaces. All other browsers, current versions, (IE, Firefox, Opera, and Safari for PC) correctly paste it as an ol or ul. Chrome pastes it properly if I don't indent.