CKeditor:缺少图像属性的"上传"选项卡

Dim*_*los 5 upload tabs image ckeditor

我试图在自定义CMS中使用CKEditor 3.6.2.到目前为止,我已按照说明下载了打包ZIP,将其解压缩并上传到我的根路径中.问题是除了图像属性上的"上传"选项卡外,一切正常.我尝试在image.js文件中更改Upload:hidden true为false,但仍然没有改变.甚至在包含的样本的CKEditor实例上也会发生这种情况.所以我想这是我想念的东西.

有谁知道?!:)

Rai*_*iao 9

我猜你用config.js定制了ckeditor.如果是这样,请在配置文件中添加'filebrowserImageBrowseUrl'和'filebrowserImageUploadUrl'.

CKEDITOR.editorConfig = function( config ) {
  // Other configs
  config.filebrowserImageBrowseUrl = '/ckeditor/pictures';
  config.filebrowserImageUploadUrl = '/ckeditor/pictures';

};
Run Code Online (Sandbox Code Playgroud)


Ani*_*nil 2

我自己也在找这个。

您可以购买“CkFinder”来执行此操作,插入后,将出现“上传”选项卡。

但是,有一个免费版本可以与 CKeditor 完美集成,提供相同的功能:

http://kcfinder.sunhater.com/

这就是您使用 ckeditor 将文件上传到服务器(并从服务器中选择文件!!)所需的内容。