Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
If I copy-paste text from the Ckeditor window to another place in the same ckeditor window, then each space is replaced by
. This has implications for Drupal's "Summary or trimmed" teaser text, because the
characters cause awkward results (can't break on white-space, because there is no whitespace between the words).
This is for Ckeditor 4.x, I don't remember this happening in Ckeditor 3.x
Example:
Rabo OmniKassa ondervond 22 januari 2013 van 9.45 uur tot 19:30 uur een technische storing met iDEAL betalingen. De status van de iDEAL betaling werd tijdens deze storing niet gemeld. Inmiddels wordt de status weer gemeld. Ook de statussen van iDEAL betalingen in de storingsperiode zijn inmiddels alsnog geleverd.
Becomes:
Rabo OmniKassa ondervond 22 januari 2013 van 9.45 uur tot 19:30 uur een technische storing met iDEAL betalingen. De status van de iDEAL betaling werd tijdens deze storing niet gemeld. Inmiddels wordt de status weer gemeld. Ook de statussen van iDEAL betalingen in de storingsperiode zijn inmiddels alsnog geleverd.
Comments
Comment #0.0
Anonymous (not verified) CreditAttribution: Anonymous commentedUpdated issue summary.
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedBy the way, copy-pasting from Notepad does work!
So currently I have to copy-from-ckeditor, paste-to-notepad, copy-from-notepad, past-to-ckeditor.
I find this ridiculous!
Comment #2
jasonlttl CreditAttribution: jasonlttl commentedI seem to have encountered this issue as well (though I use WYSIWYG). I suspect this is a variation of this ckeditor issue which is reported to impact webkit browsers.
See Ckeditor (libary) issue: [Chrome 23] is created
Comment #3
wwalc CreditAttribution: wwalc commented@morningtime - any chance to check this on a vanilla installation of Drupal + CKEditor module? It looks like certain configuration is triggering it... unless you're able to reproduce it at http://ckeditor.com/demo as well?
If yes, let me know what OS and browser are you using.
Comment #3.0
wwalc CreditAttribution: wwalc commentedUpdated issue summary.
Comment #4
jasonlttl CreditAttribution: jasonlttl commentedIf the original issue was an instance of #2, that got fixed in version 4.2.3 of the ckeditor library a few weeks back.
Their fix is actually a work around for some browser bugs which might ultimately be the root of the problem.
https://bugs.webkit.org/show_bug.cgi?id=123163
https://code.google.com/p/chromium/issues/detail?id=310149
Comment #5
Daemon_Byte CreditAttribution: Daemon_Byte commentedI have the same problem and am using ckeditor 4.3.4. copy and paste causes all spaces to be converted. This happens regardless of if use html entities is turned on or not under advanced settings. I can't replicate it on ckeditor demo. It doesn't however happen if you use paste from word option.
Comment #6
Daemon_Byte CreditAttribution: Daemon_Byte commentedhttp://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-basicEntities
config.basicEntities = false;
Setting that does stop it however it does also have security implications. I believe it has something to do with the text being utf-8. Oh and if you copy utf-8 text (ie from your ckeditor) and paste it into the demo the same problem occurs. So it does seem to be a ckeditor issue.
Comment #7
didierlebouc CreditAttribution: didierlebouc commentedOrthographic corrector SCAYT (Spell Check As You Type) of CKE is the cause of this issue on my installation. I removed it and no more !
Comment #8
gmclelland CreditAttribution: gmclelland commentedCould also try https://www.drupal.org/project/ckeditor_paragraph_paste_fix
Comment #9
BartNijs CreditAttribution: BartNijs commentedThis seems to be a browser issue, not a ckeditor issue. I don't remember where I read it, but it appears that TinyMCE has the same problem in chrome and safari (webkit).