小弟目前使用3.0的Ckeditor+2.0的Ckfinder整合JSP
目前的问题是,如果项目放在ROOT下(就是lolcalhost:8080直接访问)一点问题没有。
如果使用项目目录(就是webApp下的project目录下访问用localhost:8080/project)
无法访问服务器
浏览服务器不可用 点进去就是404。上传也无法上传 下面是config.js和config.xml
CKEDITOR.editorConfig = function(config) {
config.filebrowserBrowseUrl = '/ckfinder/ckfinder.html'
config.filebrowserImageBrowseUrl = '/ckfinder/ckfinder.html?type=Images'
config.filebrowserFlashBrowseUrl = '/ckfinder/ckfinder.html?type=Flash'
config.filebrowserUploadUrl = '/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Files'
config.filebrowserImageUploadUrl = '/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Images'
config.filebrowserFlashUploadUrl = '/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Flash'
config.filebrowserWindowWidth = '1000';
config.filebrowserWindowHeight = '700';
config.language = "zh-cn";
config.toolbar_Full =
[
{ name: 'document', items : [ 'Source','-','Save','NewPage','DocProps','Preview','Print','-','Templates' ] },
{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
{ name: 'editing', items : [ 'Find','Replace','-','SelectAll', 'ImageButton' ] },
{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
'/',
{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ] },
{ name: 'links', items : [ 'Link','Unlink','Anchor' ] },
{ name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','SpecialChar','PageBreak' ] },
'/',
{ name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
{ name: 'colors', items : [ 'TextColor','BGColor' ] },
{ name: 'tools', items : [ 'Maximize', 'ShowBlocks' ] }
];
};
CONFIG.XML
<config>
<!--
CKFinder : Configuration File - Basic Instructions
In a generic usage case, the following tasks must be done to configure CKFinder:
1. Check the baseDir and baseUrl options;
2. If available, paste your license key in the "licenseKey" setting;
3. Enable CKFinder using the "enabled" setting.
WARNING : DO NOT simply set "enabled" to "true" on a production site. By doing so, you