我正在尝试在TinyMCE中集成Roxy Fileman (http://www.roxyfileman.com)。
单击TinyMCE的触发器图像后,无法使图标显示Roxy Fileman,但它不能正常工作。
当我打开从这些错误中收到的Roxy文件时,Chrome发出了明显的警告:
加载语言文件时出现E_LoadingConf E_ActionDisabled错误
我已经向Roxy Fileman的工作人员发送了一条消息,但没有得到回复。
有人能帮我集成这个吗?我需要一种方法来上传照片到TinyMCE上。
如果任何人有任何其他插件表示我接受。
下面是我的代码:
<script type="text/javascript" src="js/tinymce/tinymce.min.js"></script>
<script>
// This must be set to the absolute path from the site root.
var roxyFileman = 'js/tinymce/plugins/fileman/index.html?integration=tinymce4';
$(function() {
tinyMCE.init({language : 'pt_BR', selector: 'textarea#elm1', menubar : false, plugins: 'advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking save table contextmenu directionality template paste textcolor',
toolbar: "insertfile undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | link image | bullist numlist outdent indent | forecolor", file_browser_callback: RoxyFileBrowser});
});
function RoxyFileBrowser(field_name, url, type, win) {
var cmsURL = roxyFileman; // script URL - use an absolute path!
if (cmsURL.indexOf("?") < 0) {
cmsURL = cmsURL + "?type=" + type;
}
else {
cmsURL = cmsURL + "&type=" + type;
}
cmsURL += '&input=' + field_name + '&value=' + document.getElementById(field_name).value;
tinyMCE.activeEditor.windowManager.open({
file: cmsURL,
title: 'Upload de Arquivos',
width: 850, // Your dimensions may differ - toy around with them!
height: 650,
resizable: "yes",
plugins: "media",
inline: "yes", // This parameter only has an effect if you use the inlinepopups plugin!
close_previous: "no"
}, {
window: win,
input: field_name
});
return false;
}
</script>*TinyMCE为4.0.16 (2014-01-31)。Roxy运行在支持PHP 5.2.17的Windows服务器上。
感谢您的关注。
发布于 2015-01-07 23:47:04
您是否尝试过更改conf.json文件,集成应从自定义更改为:-
"INTEGRATION": "tinymce4", 并且可能在您的web配置中添加
<system.webServer>
...
<staticContent>
<mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
...发布于 2014-02-21 22:32:25
似乎Roxy Fileman配置和语言文件丢失或包含语法错误。尝试在浏览器中加载js/tinymce/plugins/fileman/conf.json并查看结果。所有的配置和语言文件都是json格式,并且必须是utf8编码的。
您还可以使用开发人员工具->网络进行调试,以查看Fileman初始化时的服务器响应。
E_LoadingConf表示无法加载或解析配置文件。E_ActionDisabled是因为未加载配置
发布于 2014-08-20 22:03:53
加载语言文件时出现E_LoadingConf和E_ActionDisabled错误,这可能是因为您的服务器未配置为正确处理json文件而导致的。
您需要将json配置为新的mime类型。
如果您的服务器使用IIS,则需要按照this page上列出的步骤操作
祝你好运!
https://stackoverflow.com/questions/21758333
复制相似问题