集成filebrowser插件和CKEditor 4.3标准
我正在与这种整合作斗争。非常感谢您的帮助 我只想在“图像”对话框的“链接”选项卡上使用“文件浏览器”选项。此外,我希望它默认为一个特定的文件夹 我已经下载了filebrowser和popup插件(4.3 standard没有在插件文件夹中列出它们),并使用以下内容修改了config.js:集成filebrowser插件和CKEditor 4.3标准,ckeditor,file-browser,Ckeditor,File Browser,我正在与这种整合作斗争。非常感谢您的帮助 我只想在“图像”对话框的“链接”选项卡上使用“文件浏览器”选项。此外,我希望它默认为一个特定的文件夹 我已经下载了filebrowser和popup插件(4.3 standard没有在插件文件夹中列出它们),并使用以下内容修改了config.js: // enable plugin config.extraPlugins = 'filebrowser'; config.extraPlugins = 'popup'; 我从include(
// enable plugin
config.extraPlugins = 'filebrowser';
config.extraPlugins = 'popup';
我从include(contentEditor.js)调用CK实例
现在,我迷路了。如何激活浏览器按钮并将图像路径传递回实例
1/28更新
由于我找不到任何关于如何集成filebrowser插件的文档,我正在考虑集成一个自定义浏览脚本
因此,在我的config.js fle中,我有:
// Custom template files referenced in this array
config.templates_files = [ 'http://dev.wtpcentral.com/js/CK_templates_city.js' ];
// Image browser
config.filebrowserImageBrowseLinkUrl : "/include/filebrowser/browse.php?type=Images&dir="+encodeURIComponent('content/images');
// config.filebrowserImageBrowseUrl : "/include/filebrowser/browse.php?type=Images&dir="+encodeURIComponent('content/images');
// Custom Image upload
config.filebrowserUploadUrl ='/include/classUpload/upload_CK.php';
// enable plugin
// config.extraPlugins = 'filebrowser,popup';
然后,我将browse.php放入/include/filebrowser文件夹
但是,这带来了一个错误:
语法错误:无效的标签config.filebrowserImageBrowseUrl:“/include/filebrowser/browse.php
我的自定义图像上载脚本现在无法加载
正如您在我的内联说明中所看到的,我尝试了config.filebrowserImageBrowseUrl,结果相同
非常感谢您的帮助。在这种情况下,您必须使用“=”而不是“:”。更改此行
config.filebrowserImageBrowseLinkUrl: "/include/filebrowser/browse.php?type=Images&dir="+encodeURIComponent('content/images');
到
config.filebrowserImageBrowseLinkUrl: "/include/filebrowser/browse.php?type=Images&dir="+encodeURIComponent('content/images');
config.filebrowserImageBrowseLinkUrl = "/include/filebrowser/browse.php?type=Images&dir="+encodeURIComponent('content/images');