0

CKEditor image browse problem

asked 2013-11-19 02:56:14 +0800

maxyu gravatar image maxyu
9

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?

delete flag offensive retag edit

Comments

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

Debug 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

1 Answer

Sort by » oldest newest most voted
0

answered 2013-11-20 03:56:22 +0800

RaymondChao gravatar image RaymondChao
386 1 4

Hello maxyu,

Thanks for your debugging. I've create an issue here.

We will fix it in ZK-CKEditor freshly release version.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2013-11-19 02:56:14 +0800

Seen: 13 times

Last updated: Nov 20 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More