Roxy Fileman Integration in TinyMCE

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>
// 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'm runs on a Windows server with PHP 5.2.17 support.

Thank you for your attention.

+4
4

conf.json? : -

"INTEGRATION":         "tinymce4", 

, , -

<system.webServer>
 ...
<staticContent>
    <mimeMap fileExtension=".json" mimeType="application/json" />
</staticContent>
...
+5

, Roxy Fileman . js/tinymce/plugins/fileman/conf.json . json utf8.

β†’ , , Fileman .

E_LoadingConf , . E_ActionDisabled - , .

+3

E_LoadingConf E_ActionDisabled - , , json.

json mime.

If your server is running IIS, you need to follow the steps listed on this page.

Good luck

+3
source

Try changing this

document.getElementById (field_name)

To be

document.getElementById ("your_id_tinymce")

0
source

Source: https://habr.com/ru/post/1526766/


All Articles