I tried to implement Roxyfileman with ckeditor. It worked. But when I tried to change the image default directory, it seemed not to work. Any idea?
Thanks you.
My config ckeditor ===> working well
CKEDITOR.editorConfig = function( config ) {
//roxyFileman
var roxyFileman = '/myapplication/boutique/admin/ext/RoxyFileman_143/index.html';
config.filebrowserBrowseUrl='roxyFileman';
config.filebrowserImageBrowseUrl =roxyFileman+'?type=image';
config.removeDialogTabs= 'link:upload;image:upload';
// end roxyFileman
};
the script for Roxyfilename : doesn't work
<script>
$(function(){
FileSelected(file) {
// Set the value of field sent to Fileman via URL param "field".
//opener.document.getElementById(RoxyUtils.GetUrlParam('field')).value = file.fullPath;
opener.document.getElementById(RoxyUtils.GetUrlParam('home/workspace/myapplication/sources/')).value = file.fullPath;
// Set the source of an image which id is sent to Fileman via URL param "img".
// opener.document.getElementById(RoxyUtils.GetUrlParam('img')).src = file.fullPath;
opener.document.getElementById(RoxyUtils.GetUrlParam('image')).src = file.fullPath;
// Close file manager if it's opened in separate window.
self.close();
// Close file manager if it's opened in JQuery dialog.
$(opener.document).find('#dialog_element_id').dialog('close');
}
}
</script>