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).
Re: inserting javascript - ckeditor inserts additional mark
Using Joomla 1.5.22 and CKEditor 3.5.2
Re: inserting javascript - ckeditor inserts additional mark
Hi,
Re: inserting javascript - ckeditor inserts additional mark
any updates on this being fixed in 3.5.3?
i don't see it in the changelog...
Re: inserting javascript - ckeditor inserts additional mark
Re: inserting javascript - ckeditor inserts additional mark
Re: inserting javascript - ckeditor inserts additional mark
I don't know any hack to workaround this issue.
Re: inserting javascript - ckeditor inserts additional mark
This bug still remains.
Using Joomla 1.5.22 and CKEditor 3.6
Re: inserting javascript - ckeditor inserts additional mark
This bug is related with CKEditor library itself. So it has nothing related with Joomla.
This bug is confirmed here http://dev.ckeditor.com/ticket/7243, so please be patient and wait until CKEditor developers resolve this issue.
Re: inserting javascript - ckeditor inserts additional mark
Is there any chance of it being fixed? It's been 5 months!
Re: inserting javascript - ckeditor inserts additional mark
Re: inserting javascript - ckeditor inserts additional mark
Just for your information, ticket #7243 was added to the upcoming CKEditor 3.6.2 release and is bound to be fixed in the next few days.
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: inserting javascript - ckeditor inserts additional mark
Re: inserting javascript - ckeditor inserts additional mark
Re: inserting javascript - ckeditor inserts additional mark
Re: inserting javascript - ckeditor inserts additional mark
Yes, see the " Milestone: CKEditor 3.6.2" field.
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 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: inserting javascript - ckeditor inserts additional mark
I am using Joomla 1.5.22 and CKEditor 3.5.2 is there an fix by now a in 3.5.3. I´d like to know before switching. Tks Aaminah
Re: inserting javascript - ckeditor inserts additional mark
Re: inserting javascript - ckeditor inserts additional mark
new release of CKEditor (3.6.2) & Joomla for all version just arise.
Please update.
Re: inserting javascript - ckeditor inserts additional mark
Re: inserting javascript - ckeditor inserts additional mark
@Aaminah1978
You can get 1.5.8 version from : http://extensions.joomla.org/extensions/edition/editors/12821.