Help: Image uploader problem

Looking for help? Ready to help? That's the place to go.

Help: Image uploader problem

Postby ryoli999 » Thu Sep 03, 2009 5:12 pm

The image uploader in my CKEditor doesn't automatically jump back to image info tab after I uploaded a image like the demo does. The editor stay at upload tab and shows the link returned from server and doesn't jump back to image info tab. Is this a bug or my settings doesn't correct? can anyone help me with it? Thanks in advance.
ryoli999
 
Posts: 2
Joined: Wed Sep 02, 2009 7:10 pm

Re: Help: Image uploader problem

Postby csosborn » Sun Sep 06, 2009 8:40 pm

I probed the demo page using Firebug and found that the upload script isn't just returning the URL for the uploaded file, but a snippet of Javascript that calls into CKEditor:

Code: Select all
<script type="text/javascript">window.parent.CKEDITOR.tools.callFunction(1, '<url of uploaded file>', '');</script>

I'm pretty sure the first argument is just the value of the CKEditorFuncNum variable (one of the form variables CKEditor submits to the upload handler), making this some sort of undocumented callback system. The third argument is where you put an error message if the upload fails for some reason.

I tried this on my own setup and it seems to work at least partially. It jumps back to the first tab as expected and inserts the image tag and url properly. However, the image appears broken in both the preview window and the editor itself, despite the url being perfectly valid. It all seems rather delicate at this point, but still, it's progress.
csosborn
 
Posts: 1
Joined: Sun Sep 06, 2009 8:18 pm

Re: Help: Image uploader problem

Postby skunkwerk » Mon Sep 07, 2009 8:02 pm

has anyone figured this out yet?
I can't even get the upload dialog to move back to the first tab and paste the URL - I get this error:
z._.filebrowserSe is undefined

could someone please document the javascript call to make uploading work like the demo?

thanks
skunkwerk
 
Posts: 8
Joined: Thu Apr 30, 2009 3:34 am

Re: Help: Image uploader problem

Postby pogacsa » Thu Nov 26, 2009 2:04 pm

skunkwerk wrote:has anyone figured this out yet?
I can't even get the upload dialog to move back to the first tab and paste the URL - I get this error:
z._.filebrowserSe is undefined

could someone please document the javascript call to make uploading work like the demo?

thanks


are you on IE or FF? for some reason IE does not make a new popup for browser, therefore no way to find the opener :cry:
pogacsa
 
Posts: 5
Joined: Thu Nov 26, 2009 11:13 am

Re: Help: Image uploader problem

Postby danhaug » Fri May 28, 2010 12:11 pm

I had the same problem and found out that this problem exists (in my case) only, if I have two CKEditor instances on the same page. With a workaround I placed them on two different pages and everything is working fine.
Cheers
Daniel
danhaug
 
Posts: 1
Joined: Fri May 28, 2010 12:08 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests