fercho's avatar

Help Configuring elfinder.connector in barryvdh's Elfinder component

Im trying to set a route in my controller for uploading an Image with the @Barryvdh Elfinder component through ckeditor wysiwyg but I dont understand how to configure elfinder.connector where I think routes should be set, In. ckeditor4.php I have

 $().ready(function() {
            var funcNum = getUrlParam('CKEditorFuncNum');

            var elf = $('#elfinder').elfinder({
                // set your elFinder options here
                <?php if($locale){ ?>
                    lang: '<?= $locale ?>', // locale
                <?php } ?>
                customData: { 
                    _token: '<?= csrf_token() ?>'
                },
                url: '<?= route("elfinder.connector") ?>',  // connector URL
                getFileCallback : function(file) {
                    window.opener.CKEDITOR.tools.callFunction(funcNum, file.url);
                    window.close();
                }
            }).elfinder('instance');
        });

and this

                url: '<?= route("elfinder.connector") ?>',  // connector URL

is the place for the routes, but I dont understand how to access or where to access and what kind of values I should give it to upload the image.

0 likes
2 replies

Please or to participate in this conversation.