Hi all,
I'm trying to write a custom file browser for CK Editor. I have followed the instructions contained here
http://docs.cksource.com/CKEditor_3.x/D ... ploader%29
http://docs.cksource.com/CKEditor_3.x/D ... le_Browser
and
http://stackoverflow.com/questions/1498 ... h-ckeditor
I have a TEXTAREA, and I'm using
CKEDITOR.replace("name", { filebrowserImageBrowseUrl: "mybrowser.php", filebrowserImageUploadUrl: "myimageupload.php" });
in a script tag immediately after the TEXTAREA is closed. The editor works perfectly, in that it posts and loads as expected with no extra intervention. Kudos on a beautiful product so far!
However, it seems the setting filebrowserBrowseUrl has absolutely no effect. Using firebug to dig a little deeper, I found that it's not being set in CKEDITOR.config. Also, filebrowserImageUploadUrl does not change CKEDITOR.config.image_uploadAction, which I'm guessing it should. Changing image_uploadAction from "nowhere.php" to "myimageupload.php" at least connects to my upload script (i.e. I see my "hello!" cause I haven't written the uploader yet). But I can't find an equivalent for the browser. Again, using firebug, I inspected to "Browser Server" button, identified the outer <a> link which has href="javascript: void(0);". I've inspected this object in the javascript debugger and cannot see any attached events, so I'm guessing that either the href needs to be changed, or I'm missing something.
Have I missed something entirely here? Has anyone else got their own file browser up and running?
Thanks