You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I had no trouble integrating FileManager with Laravel for Image upload and with CkEditor. However I could not use it to select an image to use get the url in an input textfield.
FileManager opened in the new window, but on clicking the select button I got the following error in chrome dev tool:
filemanager.min.js:24 Uncaught TypeError: Cannot set property 'value' of null
After much searching I realized that the issue was with laravel treating the command:
OpenServerBrowser(url) as a call to a route, in this case(url).
Eventually, I got it to work by changing the line:
parent.document.getElementById($.urlParam('field_name')).value = url;
in filemanager.js:652 to
parent.window.opener.document.getElementById($.urlParam('field_name')).value = url;
Hi, I had no trouble integrating FileManager with Laravel for Image upload and with CkEditor. However I could not use it to select an image to use get the url in an input textfield.
FileManager opened in the new window, but on clicking the select button I got the following error in chrome dev tool:
filemanager.min.js:24 Uncaught TypeError: Cannot set property 'value' of null
I checked the following :
I also cloned bestmomo's (https://github.com/bestmomo) example:
https://github.com/bestmomo/laravel5-example
and tried to follow his method but he did not use image selection.
After much searching I realized that the issue was with laravel treating the command:
OpenServerBrowser(url) as a call to a route, in this case(url).
Eventually, I got it to work by changing the line:
parent.document.getElementById($.urlParam('field_name')).value = url;
in filemanager.js:652 to
parent.window.opener.document.getElementById($.urlParam('field_name')).value = url;
I also added the function : self.close() like so:
if($.urlParam('field_name'))
{
parent.window.opener.document.getElementById($.urlParam('field_name')).value = url;
self.close();
}
The text was updated successfully, but these errors were encountered: