我正在尝试在TinyMCE中集成Roxy Fileman(http://www.roxyfileman.com)。

单击TinyMCE的触发图像后,无法使该图标显示为Roxy Fileman,但无法正常工作。

当我打开Roxy Fileman时,从这些错误中收到来自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's在支持PHP 5.2.17的Windows服务器上运行。

感谢您的关注。

最佳答案

您是否尝试过更改conf.json文件
集成应该从定制更改为:-

"INTEGRATION":         "tinymce4",

并可能在您的Web配置中添加
<system.webServer>
 ...
<staticContent>
    <mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
...

10-06 12:38