-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I use ZK 6.5.3 with ZK-CKEditor 4.0.1 and have problem to browse the image on the server.
When I press the browse button, I can see exception in server log.
<ckeditor id="content" customconfigurationspath="/ckeditor.js" height="400px" filebrowserimagebrowseurl="img"/>
java.lang.NullPointerException at org.zkforge.ckez.FilebrowserController.getFolderUrl(FilebrowserController.java:94) at org.zkforge.ckez.FilebrowserController.doAfterCompose(FilebrowserController.java:59)
So I dig into the code and use fiddler to trace the request from client. It seems client send wrong type parameter when click the browse button.Following is the URL captured in fiddler: GET /cktest/zkau/web/ckez/html/browse.zul?Type=Flash&CKEditor=lH5Q1-cnt&CKEditorFuncNum=2&langCode=zh-cn HTTP/1.1 According to the source ,the type should be Image, so what goes wrong?
Hello maxyu,
Thanks for your debugging. I've create an issue here.
We will fix it in ZK-CKEditor freshly release version.
Asked: 2013-11-19 02:56:14 +0800
Seen: 13 times
Last updated: Nov 20 '13
I fall back to ZK-CKEditor 3.6.4, the type parameter in URL is "Image" and browser window is popup.But the browser window is empty when there are folders and image files in img folder. Any idea?
maxyu ( 2013-11-20 01:36:41 +0800 )editDebug the ckeditor source, I found ckeditor only judge the file extension in lowercase. As my picture's extension is JPG, it is skipped by browser silently.
maxyu ( 2013-11-20 02:20:16 +0800 )edit