The config.forcePasteAsPlainText in the configuration file and the option in the ckeditor module profile configuration page for forcing as plain text are no longer working properly. They are no longer stripping out all of the junk from Microsoft Word. In previous versions of CKEditor, all of the extra code and formatting from MS Word was stripped out when copy/pasting. It used to work if you hit CTRL+V in the CKEditor window, and if you actually pressed the Paste button on the toolbar. Now it only works properly if you hit the Paste button in CKEditor -- if you press CTRL+V, it adds in all of junk from MS Word.
Drupal 6.25
CKEditor 3.6.3
CKEditor - WYSIWYG HTML editor 6.x-1.11+4-dev (2012-May-14)
Browser: Firefox 12.0
OS: Windows 7 x86
Application: MS Word 2010
Comment | File | Size | Author |
---|---|---|---|
#2 | jlea9378_screenshots_ckeditor.zip | 1.21 MB | jlea9378 |
Comments
Comment #1
dczepierga CreditAttribution: dczepierga commentedHi,
I check this and i only change option in CKEditor profile (Advanced options section) and for me everything works fine... could u paste any example of text which u try to paste or send me file with this text?
I will try to reproduce this with your document...
Greetings
Comment #2
jlea9378 CreditAttribution: jlea9378 commentedIt's not working fine for us. We've been using ckeditor for over a year now, and this didn't start happening until a few weeks ago, about the time that I updated from 3.6.2 to 3.6.3. However it could have been from updating the ckeditor module also.
It doesn't matter what the Word document is. If you paste in the contents of the Word doc using CTRL+V, then it inserts XML and CSS junk. See attached screenshots.
Below is my config file:
Comment #3
mkesicki CreditAttribution: mkesicki commented@guys,
I checked this and contacted with CKEditor library developers. It looks like problem in CKEditor.
Here is ticket for it: http://dev.ckeditor.com/ticket/8968.
Comment #4
jlea9378 CreditAttribution: jlea9378 commentedThanks, Michal.
Comment #5
dczepierga CreditAttribution: dczepierga commentedComment #6
jlea9378 CreditAttribution: jlea9378 commentedI just discovered that ckeditor 3.6.4 was released and includes a patch to resolve this problem. I reviewed it and it solves the problem related to pasting from MS Word or Outlook using CTRL+V. However, pasting from the firefox Edit menu still results in XML and CSS code being pasted in along with the content. I read the notes on the bug tracker that Michal mentioned, and the developer said something about it being fixed entirely in v4. Was he referring to a future release, version 4.0.0?
Comment #7
dczepierga CreditAttribution: dczepierga commented@jlea9378, yes he referring to CKEditor 4 which is in development now and should be released soon.
This bug it's only library problem and we cannot do anything with it, so u must wait for new CKEditor release.
Greetings
Comment #8
jlea9378 CreditAttribution: jlea9378 commentedok thanks. The patch fixed the ctrl+v problem, which was the biggest issue. I doubt anyone uses the browser's edit menu to paste.