I am trying to integrate Roxy Fileman ( http://www.roxyfileman.com ) into TinyMCE.
You cannot make the Roxy Fileman icon after clicking the Trigger Image TinyMCE button, but it does not work correctly.
When I open Roxy Fileman received from these errors, an explicit warning from Chrome:
E_LoadingConf E_ActionDisabled Error loading language file
I already sent a message to the Roxy Fileman staff but did not receive a response.
Can someone help me integrate this? I need a way to upload photos to TinyMCE.
If anyone has another plugin to indicate what I accept.
Below is my code:
<script type="text/javascript" src="js/tinymce/tinymce.min.js"></script>
<script>
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;
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,
height: 650,
resizable: "yes",
plugins: "media",
inline: "yes",
close_previous: "no"
}, {
window: win,
input: field_name
});
return false;
}
</script>
* TinyMCE - 4.0.16 (2014-01-31). Roxy'm runs on a Windows server with PHP 5.2.17 support.
Thank you for your attention.