Please check the following instructions before submitting a bug :
And provide the followings :
Hi, i found this #759 and it's not working... any solution?
Not battle tested.
But try adding a file_picker_callback function like this.
`file_picker_callback: function (callback, value, meta) {
let x = window.innerWidth || document.documentElement.clientWidth || document.getElementsByTagName('body')[0].clientWidth;
let y = window.innerHeight|| document.documentElement.clientHeight|| document.getElementsByTagName('body')[0].clientHeight;
let type = 'image' === meta.filetype ? 'Images' : 'Files',
url = '/laravel-filemanager?editor=tinymce5&type=' + type;
tinymce.activeEditor.windowManager.openUrl({
url : url,
title : 'Filemanager',
width : x * 0.8,
height : y * 0.8,
onMessage: (api, message) => {
callback(message.content);
}
});
}`
thanks. it's worked
Most helpful comment
Not battle tested.
But try adding a file_picker_callback function like this.
`file_picker_callback: function (callback, value, meta) {
let x = window.innerWidth || document.documentElement.clientWidth || document.getElementsByTagName('body')[0].clientWidth;
let y = window.innerHeight|| document.documentElement.clientHeight|| document.getElementsByTagName('body')[0].clientHeight;