我正在使用集成了ckeditor (ckeditor inline )的kcfinder来上传图像和选择。当通过单击浏览服务器按钮选择图像时,它可以按预期显示图像。但当我右击图像时,它没有显示选择,选择缩略图选项,图像不会通过双击图像插入到模板中。
请帮我弄清楚这个功能。
CKEDITOR.editorConfig = function( config ) {
config.filebrowserBrowseUrl = '../kcfinder/browse.php?type=images';
config.filebrowserUploadUrl = '../kcfinder/upload.php?type=images';
config.extraPlugins = 'tokens,htmlSource,link';
config.removePlugins = 'flash';
config.baseFloatZIndex = 900;
config.toolbarGroups = [
{name: 'sourcedialog'},
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
{ name: 'links' },
{ name: 'insert' },
{ name: 'tools' },
{ name: 'others' },
'/',
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align' ] },
{ name: 'styles' },
{ name: 'colors' },
{ name: 'tokens'},
{ name: 'htmlSource'}
];
};发布于 2013-08-07 21:34:47
任何面临上述问题的人
转到路径:
kcfinder\js\browser\files.js
将这两行相加到219
else { window.opener.CKEDITOR.tools.callFunction(0,fileURL,'');
window.close();}
将会解决这个问题。
参考:
http://docs.ckeditor.com/#!/guide/dev_file_browser_api http://docs.cksource.com/CKEditor_3.x/Developers_Guide/File_Browser_(Uploader)/Custom_File_Browser
https://stackoverflow.com/questions/18094827
复制相似问题