I’m trying to configure CKEditor to allow the user to upload an image from her computer. I’m using filebrowserUploadUrl, so I can upload the image to the server and get back the URL assigned to it, but I can’t figure out how to pass the URL to the actual editor…
Some examples on the net talk about returning from the server something like <script>parent.CKEDITOR.tools.callFunction ..., but I think it’s quite ugly, isn’t there a way to tell CKEditor “after the image is uploaded, call this function’?
Read again the syntax: you get the CKEDITOR object and tell it to call back a function, so it does exactly what you want.