Log in or register to post comments
Last post
inserting javascript - ckeditor inserts additional markup
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).
Re: inserting javascript - ckeditor inserts additional mark
I have the same problem...

Using Joomla 1.5.22 and CKEditor 3.5.2
Re: inserting javascript - ckeditor inserts additional mark
Hi,

I have the same problem...
Using Joomla 1.5.22 and CKEditor 3.5.2
I have the same problem...
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.
Re: inserting javascript - ckeditor inserts additional mark
i'm running into this bug as well...
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
chadd wrote:i'm running into this bug as well...
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.
Re: inserting javascript - ckeditor inserts additional mark
is there any hack i can implement in the meantime to prevent these errors?
Re: inserting javascript - ckeditor inserts additional mark
chadd wrote:is there any hack i can implement in the meantime to prevent these errors?

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
I'm having this problem too, and it's coming to the point where I'm having to stop using CKEditor completely and switch back to TinyMCE. I prefer CKEditor over TinyMCE, and it's unfortunate that it has to come to this.

Is there any chance of it being fixed? It's been 5 months!
Re: inserting javascript - ckeditor inserts additional mark
This issue is reported at CKEditor bugtracker and is confirmed there. CKEditor developers should fix it as soon as they can, but I can't make promise when they do it. Please be patient.
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 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!

Re: inserting javascript - ckeditor inserts additional mark
Anna wrote: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.


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?
Re: inserting javascript - ckeditor inserts additional mark
chadd wrote: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.
Re: inserting javascript - ckeditor inserts additional mark
mkesicki wrote:
chadd wrote: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?
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 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!

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
Aaminah1978 wrote: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 :?:

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.
Re: inserting javascript - ckeditor inserts additional mark
Hi,
new release of CKEditor (3.6.2) & Joomla for all version just arise.
Please update.
Re: inserting javascript - ckeditor inserts additional mark
mkesicki wrote:
Aaminah1978 wrote: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 :?:

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.



Thank´s - I´ll wait and really look forward to the release for Joomla (1.5.8).
Good luck, have a nice day
Aaminah
Re: inserting javascript - ckeditor inserts additional mark
@Aaminah1978
You can get 1.5.8 version from : http://extensions.joomla.org/extensions/edition/editors/12821.