I am using ckeditor in combination with wysiwyg module and drupal. So far so good.
One thing I have tried to do is insert some javascript in the editor. This seems to work fine once I have disabled any filters. However when I update the content again, I notice that it seems to insert a whole load of additional code. One thing I have noticed is that it seems to also insert an additional space after any periods.
e.g.
<code><p><a href="products"> <img border="0" style="margin-left: -6px;" onmouseout="this.src='sites/all/themes/ixaris/images/learn_more_buttong_w2.png'" onmouseover="this.src='sites/all/themes/ixaris/images/learn_more_buttony_w2.png'" id="learn03" alt="Learn More" src="sites/all/themes/ixaris/images/learn_more_buttong_w2.png"></a></p></code>
becomes:
<code><p><a href="products"> <img alt="Learn More" id="learn03" onmouseout="this. data-cke-saved-src='sites/all/themes/ixaris/images/learn_more_buttong_w2.png' src='sites/all/themes/ixaris/images/learn_more_buttong_w2.png'" onmouseover="this. data-cke-saved-src='sites/all/themes/ixaris/images/learn_more_buttony_w2.png' src='sites/all/themes/ixaris/images/learn_more_buttony_w2.png'" src="sites/all/themes/ixaris/images/learn_more_buttong_w2.png" style="margin-left: -6px;" border="0"></a></p></code>
Please notice the additional code such as 'data-cke-saved-', and 'data-cke-saved-' inserted before image src tag, plus a space is inserted after a period so:
<code> onmouseout="this.src='sites/all/themes/ixaris/images/learn_more_buttong_w2.png'</code>
becomes
<code>onmouseout="this. data-cke-saved-src='sites/all/themes/ixaris/images/learn_more_buttong_w2.png'</code>
(please also note that alt tags are inserted as I am using html purifier, but switching this on or off does not alter ckeditor's behaviour).
One thing I have tried to do is insert some javascript in the editor. This seems to work fine once I have disabled any filters. However when I update the content again, I notice that it seems to insert a whole load of additional code. One thing I have noticed is that it seems to also insert an additional space after any periods.
e.g.
<code><p><a href="products"> <img border="0" style="margin-left: -6px;" onmouseout="this.src='sites/all/themes/ixaris/images/learn_more_buttong_w2.png'" onmouseover="this.src='sites/all/themes/ixaris/images/learn_more_buttony_w2.png'" id="learn03" alt="Learn More" src="sites/all/themes/ixaris/images/learn_more_buttong_w2.png"></a></p></code>
becomes:
<code><p><a href="products"> <img alt="Learn More" id="learn03" onmouseout="this. data-cke-saved-src='sites/all/themes/ixaris/images/learn_more_buttong_w2.png' src='sites/all/themes/ixaris/images/learn_more_buttong_w2.png'" onmouseover="this. data-cke-saved-src='sites/all/themes/ixaris/images/learn_more_buttony_w2.png' src='sites/all/themes/ixaris/images/learn_more_buttony_w2.png'" src="sites/all/themes/ixaris/images/learn_more_buttong_w2.png" style="margin-left: -6px;" border="0"></a></p></code>
Please notice the additional code such as 'data-cke-saved-', and 'data-cke-saved-' inserted before image src tag, plus a space is inserted after a period so:
<code> onmouseout="this.src='sites/all/themes/ixaris/images/learn_more_buttong_w2.png'</code>
becomes
<code>onmouseout="this. data-cke-saved-src='sites/all/themes/ixaris/images/learn_more_buttong_w2.png'</code>
(please also note that alt tags are inserted as I am using html purifier, but switching this on or off does not alter ckeditor's behaviour).

Using Joomla 1.5.22 and CKEditor 3.5.2
I can't reproduce this behaviour.
Please , send me some additional information.
EDIT:
After some research I found this http://dev.ckeditor.com/ticket/7243 .
So, this is known editor bug .
Please stay in touch with future editor versions.
any updates on this being fixed in 3.5.3?
i don't see it in the changelog...
On CKEditor track this issue is still open. In 3.5.3 it was not fixed. Please be patient .
You can always check ticket status here http://dev.ckeditor.com/ticket/7243.
I don't know any hack to workaround this issue.
Using Joomla 1.5.22 and CKEditor 3.6
This bug is confirmed here http://dev.ckeditor.com/ticket/7243, so please be patient and wait until CKEditor developers resolve this issue.
Is there any chance of it being fixed? It's been 5 months!
Documentation Manager, CKSource
See CKEditor 4.x docs, CKEditor 3.x docs, CKFinder docs for help. CKEditor general FAQ is useful, too!
If you think you found a bug in CKEditor, read this!
any update to what the status is of this fix/release and if there is any patch i could apply in the meantime to fix this bug?
The best way to check this is refer to http://dev.ckeditor.com/ticket/7243 and check there. All patches and information about this bug will be there.
so does "targeting it into 3.6.2." mean that it will be fixed in the next release, whenever that may be?
Btw, this bug appears to have been fixed yesterday, so you can check the nightly build whether you can still reproduce it.
Documentation Manager, CKSource
See CKEditor 4.x docs, CKEditor 3.x docs, CKFinder docs for help. CKEditor general FAQ is useful, too!
If you think you found a bug in CKEditor, read this!
It will be added to next release of CKEditor (3.6.2).
After release of CKEditor we will create new release for Joomla (1.5.8) ASAP.
Please be patient.
new release of CKEditor (3.6.2) & Joomla for all version just arise.
Please update.
Thank´s - I´ll wait and really look forward to the release for Joomla (1.5.8).
Good luck, have a nice day
Aaminah
You can get 1.5.8 version from : http://extensions.joomla.org/extensions/edition/editors/12821.