Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#5409 closed Bug (worksforme)

CKEditor 3.2 image dialog forces refresh of page

Reported by: Gerd W. Naschenweng Owned by:
Priority: Normal Milestone:
Component: General Version: 3.4
Keywords: Pending Cc: Alfonso Martínez de Lizarrondo


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 (11)

comment:1 Changed 7 years ago by Gilles van den Hoven

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">

comment:2 Changed 7 years ago by Gerd W. Naschenweng

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 7 years ago by Gerd W. Naschenweng

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


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


comment:4 Changed 7 years ago by Garry Yao

Cc: Alfonso Martínez de Lizarrondo added
Keywords: Pending added

WFM in both Safari and Chrome on Windows.

comment:5 Changed 7 years ago by Alfonso Martínez de Lizarrondo

I've tested and the nightly samples and I don't notice any problem with Mac OSX 10.6.3 in Safari or Chrome.

comment:6 Changed 7 years ago by Gerd W. Naschenweng

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 7 years ago by Alfonso Martínez de Lizarrondo

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 7 years ago by Frederico Caldeira Knabben

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 Changed 7 years ago by Alfonso Martínez de Lizarrondo

Resolution: worksforme
Status: newclosed

comment:10 in reply to:  9 Changed 7 years ago by Petr

Version: 3.23.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 7 years ago by Petr

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).


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