When I select a file or an image with the roxy fileman, the file or the image doesn't appear in the editor if I don't use the keyboard in the tinymce source field. It works fine if I write a space and I delete it before clicking the "Ok" button.
The path (a good path) given by roxy fileman isn't considered by the tinymce image or link tool if a keyup event isn't triggered ! ?
Same problem in Firefox or Chrome.
PHP 5.5.9, TinyMCE 4, roxyfileman 1.4.3, Ubuntu 14.04
Is there a parameter that I don't use correctly ?
My code:
<!DOCTYPE html>
<html>
<head>
<title>Test TinyMCE</title>
<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="js/tinymce/tinymce.min.js"></script>
<!-- place in header of your html document -->
</head>
<body>
<textarea id="tinymce" name="tinymce" rows="60" cols="80">
</textarea>
<script>
// This must be set to the absolute path from the site root.
var roxyFileman = '/public/fileman/index.html?integration=tinymce4';
$(function() {
tinyMCE.init({language: 'fr_FR', selector: '#tinymce', plugins: 'link image',
toolbar: "link | image", 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=' + win.document.getElementById(field_name).value;
tinyMCE.activeEditor.windowManager.open({
file: cmsURL,
title: 'Images / Fichiers',
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>
</body>
</html>
Thanks for your help.
</div>