Currently no such patch will be accepted for the 2.x code. That codeline is in "maintenance" mode, so only bugs will be fixed, the development is focused in V3 and if you want to add your code then you must work there.
To find out how it's handled, search the code for "paste" that will give you all the references to any paste related code. In v2 there was an onPaste listener for IE and only onkey(press,down?) for the rest of the browsers. The fact is that for example Firefox 3 also supports onPaste, so that code should be updated in v3, I think that Safari also supports onPaste.
Recently I coded such solution (with some restrictions, like focusing only in Firefox3) for a client, so I can tell you that although the basic idea might be a good start (at least you need to be able to code that before you can get the full solution) it fails to work properly, so you need to do some extra tasks after those initial steps.
If you want to get started: search the code to find the references for Paste and study that code, you need to hook you event listener for onPaste (note: you don't need to change any core code, at least in v2 everything can be done as a plugin), and you'll need to remove the default listeners because they aren't really useful.
When you have done those steps we can keep on talking.
Ok. I'm actually leaning towards some other solutions right now, but I'm going to end up with something that is likely useful to other people.
Most notably in my environment people almost always paste from Word - so I'm now considering creating a feature which is basically "force paste from word". All pasted content will be parsed through your word cleaner function.
Out of curiousity did anyone ever considered creating such a "Force Paste through Word Cleaner" option? My understanding is that the word handling code will not mangle html - and my tests seem to bear that out.
I'm going to need to play with it under 2.6.4 regardless, since that is what I have deployed right now. After this is working I'll start merging it into 3.
Right now I don't actually have code that I can modify and test - the sources are provided, but I don't have a script or instructions needed to take those scripts and minify them into the corresponding gecko and ie files. Suggestions?
Re: Word Paste trac ticket 1427
To find out how it's handled, search the code for "paste" that will give you all the references to any paste related code.
In v2 there was an onPaste listener for IE and only onkey(press,down?) for the rest of the browsers. The fact is that for example Firefox 3 also supports onPaste, so that code should be updated in v3, I think that Safari also supports onPaste.
Recently I coded such solution (with some restrictions, like focusing only in Firefox3) for a client, so I can tell you that although the basic idea might be a good start (at least you need to be able to code that before you can get the full solution) it fails to work properly, so you need to do some extra tasks after those initial steps.
If you want to get started:
search the code to find the references for Paste and study that code, you need to hook you event listener for onPaste (note: you don't need to change any core code, at least in v2 everything can be done as a plugin), and you'll need to remove the default listeners because they aren't really useful.
When you have done those steps we can keep on talking.
Re: Word Paste trac ticket 1427
Most notably in my environment people almost always paste from Word - so I'm now considering creating a feature which is basically "force paste from word". All pasted content will be parsed through your word cleaner function.
Out of curiousity did anyone ever considered creating such a "Force Paste through Word Cleaner" option? My understanding is that the word handling code will not mangle html - and my tests seem to bear that out.
I'm going to need to play with it under 2.6.4 regardless, since that is what I have deployed right now. After this is working I'll start merging it into 3.
Right now I don't actually have code that I can modify and test - the sources are provided, but I don't have a script or instructions needed to take those scripts and minify them into the corresponding gecko and ie files. Suggestions?
thanks for taking the time to reply
Re: Word Paste trac ticket 1427
http://docs.fckeditor.net/FCKeditor_2.x ... _Guide/SVN
http://docs.fckeditor.net/FCKeditor_2.x ... ompressionviewtopic.php?f=6&t=13834&p=36225#p36225
Re: Word Paste trac ticket 1427