Ticket #5409 (closed Bug: worksforme)

Opened 5 years ago

Last modified 4 years ago

CKEditor 3.2 image dialog forces refresh of page

Reported by: MagicDude4Eva Owned by:
Priority: Normal Milestone:
Component: General Version: 3.4
Keywords: Pending Cc: alfonsoml

Description

I have a Java/JSP application which implements CKEditor via

<body onLoad="CKEDITOR.replace('Trade_Description');">

When clicking on the image-toolbar icon and then either Canceling or OKing the dialog, the source page refreshes. This occurs on Safari 4.0.5 and Google Chrome on Mac OSX. No refresh occurs when run in IE or Firefox.

I have also tried the nightly build. Using FCKEditor 2.6.6 does not produce the same issue and I therefore believe there is a bug when closing the Image dialog on Safari/Chrome (Webkit).

Change History

comment:1 Changed 5 years ago by Webunity

Try loading the editor in a different way; using this code snippet at the end of your page, or using domcontentloaded from the javascript library you are using. See if that fixes the problem and reply here.

<script type="text/javascript">
CKEDITOR.replace('Trade_Description');
</script>

comment:2 Changed 5 years ago by MagicDude4Eva

I tried it and it did not work. I am not familiar with "domcontentloaded". I will upload two Quicktime movies showing the differences.

comment:3 Changed 5 years ago by MagicDude4Eva

I could not attach the files here, but uploaded to Youtube:

  • CKEditor 3.2 not working on Safari: Shows that in Safari (or Chrome) a page refresh/Get is issued

URL: http://www.youtube.com/watch?v=TGJyrHvWbiE

  • CKEditor 3.2 working in Firefox: Shows how it works differently on Firefox (or IE or Opera)

URL: http://www.youtube.com/watch?v=B_-lII8UQ-0

comment:4 Changed 5 years ago by garry.yao

  • Keywords Pending added
  • Cc alfonsoml added

WFM in both Safari and Chrome on Windows.

comment:5 Changed 5 years ago by alfonsoml

I've tested http://ckeditor.com/demo and the nightly samples and I don't notice any problem with Mac OSX 10.6.3 in Safari or Chrome.

comment:6 Changed 5 years ago by MagicDude4Eva

The standalone demos work fine. I only notice the refresh when running within our application. However swapping out CKEditor with FCKEditor (2.6.6) works fine and our page is not refreshed. This tells me, that CKEditor introduced some refresh under certain circumstances (regardless if I press Cancel/OK on the Image browse dialog). The two Youtube videos depict the different behaviour on Safari.

comment:7 Changed 5 years ago by alfonsoml

Then you'll have to provide us with a test page to understand the problem. We can't fix it any other way.

comment:8 Changed 5 years ago by fredck

CKEditor doesn't perform any page refresh. Maybe there is some code in your page that catches the click and posts the form. You should investigate it further or, as alfonsofml said, provide us a reduced test case page so we can see the problem here.

comment:9 follow-ups: ↓ 10 ↓ 11 Changed 5 years ago by alfonsoml

  • Status changed from new to closed
  • Resolution set to worksforme

comment:10 in reply to: ↑ 9 Changed 4 years ago by petrovo

  • Version changed from 3.2 to 3.4

Replying to alfonsoml:

Sorry, I have the same Problem now in Chrome 6.0.495.0 dev on Debian. Firefox is OK.

comment:11 in reply to: ↑ 9 Changed 4 years ago by petrovo

Replying to alfonsoml:

I attach a video. A simple example of the change replacebycode.html replacebycode.php. Added one line in PHP and debbuging in NetBeans. What is the difference when you close the dialog box Images and other? CKEditor reload URL. Similarly behaves Chrome 5 (maybe WebKit).

Video: http://www.youtube.com/watch?v=HI7XvqvEEt0

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy