hungsama / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

sjr:ckeditor control's image upload function work not fine #1027

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.in the browser, open ckeditor dialog, do upload image, the response image 
path miss the site domain, for example, the response content is "<script 
type="text/javascript">window.parent.CKEDITOR.tools.callFunction(0, 
"/images/upload/9b20c58b-da07-42b4-88ae-2438372f811e.png", "");</script>", 
obviously, the image can not display in the browser, unless add domain
2.check the server site code file "CkeditorUpload",it do not add the 
contextpath.

Which struts2 version?
A: 2.3.15.1

Which struts2-jquery plugin version?
A:i use the latest 3.6.1 version.

Original issue reported on code.google.com by sendre...@gmail.com on 17 Aug 2013 at 5:56

GoogleCodeExporter commented 9 years ago
struts2-jquery-showcase-3.6.1 also has this problem.

Original comment by sendre...@gmail.com on 18 Aug 2013 at 6:45

GoogleCodeExporter commented 9 years ago
The Content is generated by following default Action.
http://code.google.com/p/struts2-jquery/source/browse/trunk/struts2-jquery-richt
ext-plugin/src/main/java/com/jgeppert/struts2/jquery/richtext/actions/CkeditorUp
load.java

You can simply create your own customized Upload Action based on this one. 

Original comment by johgep on 24 Sep 2013 at 6:12