将CKFinder与CKeditor集成时遇到问题。
我在
之类的内容中更改Base Dir和Base Urlhttp://localhost:8080/Appli/userfiles/ C:\文件\ APPLI \的WebContent \ userfiles
和JS
filebrowserBrowseUrl: './pages/js/libJS/ckfinder/ckfinder.html',
filebrowserImageBrowseUrl: './pages/js/libJS/ckfinder/ckfinder.html?type=Images',
filebrowserUploadUrl: './pages/js/libJS/ckfinder//core/connector/java/connector.php?command=QuickUpload&type=Files¤tFolder=/help/',
filebrowserImageUploadUrl: './pages/js/libJS/ckfinder/core/connector/java/connector.php?command=QuickUpload&type=Images¤tFolder=/help/',
当我在CKEditor上拖动我的图像时,图像显示几秒钟(上传成功)但它消失了之后我有一个带有红色十字的“未定义”。
我的baseURL有没有找到“userfiles”?
感谢您的帮助
答案 0 :(得分:0)
请参阅:https://docs-old.ckeditor.com/CKFinder_2.x/Developers_Guide/Java/CKEditor_Integration
除非您在定义了此虚拟路径的java/connector.php
中对其进行了更改,否则您不应该web.xml
:
<servlet-mapping>
<servlet-name>ConnectorServlet</servlet-name>
<url-pattern>
/ckfinder/core/connector/java/connector.java
</url-pattern>
</servlet-mapping>
如果你有默认设置,它应该是例如
filebrowserUploadUrl: './pages/js/libJS/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Files¤tFolder=/help/'
路径中也存在错误(双斜线) - filebrowserUploadUrl: './pages/js/libJS/ckfinder//core