Hello,
after googling for a couple hours, and searching through this forum and sourcecode, finally gave up, and decided to post here.
In one of my edit-forums, I want users only to paste as plain text, which works beautifully, but if it is from a source that has multiple spaces between words, it will loose the double spacing.
Even when I copy from 1 place in the document, to another line, it will take away my double spacings.
Any idea on how to prevent this, or point me to which script exactly deals with the converting to plain text?
Thanks
after googling for a couple hours, and searching through this forum and sourcecode, finally gave up, and decided to post here.
In one of my edit-forums, I want users only to paste as plain text, which works beautifully, but if it is from a source that has multiple spaces between words, it will loose the double spacing.
Even when I copy from 1 place in the document, to another line, it will take away my double spacings.
Any idea on how to prevent this, or point me to which script exactly deals with the converting to plain text?
Thanks

Re: Paste as plain text, but keep spacing
Since a lot of the paste api is through the browsers, I bet that the browsers are simply condensing a lot of spaces...or alternatively, ignoring as html code. What is the result you get with pasting as html? what is the source you are using?
Re: Paste as plain text, but keep spacing
JAG LALIT (DH) 14/9/10 VIZAG
ends up as:
JAG LALIT (DH) 14/9/10 VIZAG
doesn't matter if the original has or normal spaces in the source, always comes out wrong.
Re: Paste as plain text, but keep spacing
you might have to press quote on my message to see the spaces. They are taken out here as well...
Re: Paste as plain text, but keep spacing
Not the cleanest or easiest way, but probably the only one.
Re: Paste as plain text, but keep spacing
CKEDITOR.instances.message.on('paste', function(event) { event.data.html = event.data.text.replace(/ /g ,' ');});Re: Paste as plain text, but keep spacing