vendredi 11 mars 2016

Elfinder & TinyMCE for Laravel 5.1

I am using [laravel-elfinder][1] for my project. Everything is working fine in my localhost. But when it is live it shows an Invalid Backend Configuration error. The only difference between my localhost and the live server is that the localhost has public while the live server has public_html, but not sure how to go from here.

[1]: http://ift.tt/1O2qxpy here is the js in my view:

function elFinderBrowser(field_name, url, type, win) {
          tinymce.activeEditor.windowManager.open({
            file: '<?= route('elfinder.tinymce4') ?>',// use an absolute path!
            title: 'elFinder 2.0',
            width: 900,
            height: 450,
            resizable: 'yes'
          }, {
            setUrl: function (url) {
              win.document.getElementById(field_name).value = url;
            }
          });

I published the config - config/elfinder.php but this is untouched as it's 'working find in localhost.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire