Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A version without external requests? #2319

Closed
Offerel opened this issue Dec 8, 2017 · 10 comments
Closed

A version without external requests? #2319

Offerel opened this issue Dec 8, 2017 · 10 comments

Comments

@Offerel
Copy link

Offerel commented Dec 8, 2017

Hi there,

is there a way that i can please have a elFinder Version without external requests like them to Cloudflare?

@nao-pon
Copy link
Member

nao-pon commented Dec 8, 2017

@Offerel Yes of course.

Please rewrite next URL to local location.

managers : {
    // 'DOM Element ID': { /* elFinder options of this DOM Element */ }
    'elfinder': {
        cdns : {} // if you don't need extra editor and viewer.
    }
}

@Offerel
Copy link
Author

Offerel commented Dec 8, 2017

i try my luck in the evening and report if it works. main reason is, that i have a relative strict CSP Header definition on my own nginx server and me and my family are the only person's who use this server currently.

BTW: i would like you to know, that i have made a experimental plugin for Roundcube Webmailer, which includes elFinder directly in to Roundcube. It was in first place only for my personal needs, but i think it's ok to share it with the community. You can find it at https://github.com/Offerel/roundcube_storage . The plugin works here as a kind of replacement for Dropbox or Google Drive, but in this context it works on the own server, with WebDAV access.

@nao-pon
Copy link
Member

nao-pon commented Dec 21, 2017

@Offerel Invalidating options.cdns requires setting each value to empty instead of {}. However, since there was a problem that some empty values could not be accepted, So I fixed it with a commit a935bf5.

cdns : {
    // for editor etc.
    ace        : null, // or your location
    codemirror : null, // or your location
    ckeditor   : null, // or your location
    tinymce    : null, // or your location
    simplemde  : null, // or your location
    // for quicklook etc.
    hls        : null, // or your location
    dash       : null, // or your location
    prettify   : null, // or your location
    psd        : null, // or your location
    rar        : null, // or your location
    zlibUnzip  : null, // or your location
    zlibGunzip : null  // or your location
}

BTW, I added a link of your https://github.com/Offerel/roundcube_storage into README.md. Thanks! 👍

@Offerel
Copy link
Author

Offerel commented Dec 21, 2017

Great, i change this in a next release. Currently I'm in the hospital, my gallbladder must be removed urgently. I had the additional idea, that i could use elfinder also for adding and saving attachments from and within the webmail GUI. I will try to implement this. However the current implementation was a first start. With this and my calendar plugin, Roundcube works really fast and better as a Nextcloud instance on the same hardware.

@nao-pon
Copy link
Member

nao-pon commented Dec 21, 2017

I do hope you feel better soon and I am wishing you a speedy recovery. And when you recover please let me know your great ideas!

@Offerel
Copy link
Author

Offerel commented Jan 4, 2018

Just let you know I'm back. There are now 2 new versions of the plugin. The version of just now adds the function to select attachments directly from elFinder and attach them to the mail.

A kind of notebook function is now planned. You should be able to create and change notes in HTML format with tinyMCE and elFinder. If I have the time for Android, there will be a companion app for Android. I've just never been into Android development before.

@Offerel Offerel closed this as completed Jan 4, 2018
@Offerel
Copy link
Author

Offerel commented Jan 5, 2018

One question to this topic. I have checked out now elFinder-2.1.31 and want to try a local ckeditor. But now, when i rightclick on a html file, there is no edit-submenu. Is this a bug?

@Offerel Offerel reopened this Jan 5, 2018
@nao-pon nao-pon self-assigned this Jan 6, 2018
@nao-pon
Copy link
Member

nao-pon commented Jan 6, 2018

@Offerel Yes, I found a bug of editing with local CKEditor. So I'll fix it.

@nao-pon nao-pon closed this as completed in 646fb64 Jan 6, 2018
@nao-pon
Copy link
Member

nao-pon commented Jan 6, 2018

@Offerel I fixed it. Please try nightly build.

with...

opts : {
    url : 'php/connector.php',
    cdns : {
        // for editor etc.
        ace        : null, // or your location
        codemirror : null, // or your location
        ckeditor   : 'Your CKEditor directory location (without last `/`)',
        tinymce    : null, // or your location
        simplemde  : null, // or your location
        // for quicklook etc.
        hls        : null, // or your location
        dash       : null, // or your location
        prettify   : null, // or your location
        psd        : null, // or your location
        rar        : null, // or your location
        zlibUnzip  : null, // or your location
        zlibGunzip : null  // or your location
    }
}

@Offerel
Copy link
Author

Offerel commented Jan 8, 2018

ahh this works better. Sorry for this late reply but my good old Rasperry Pi died at the weekend and i could by today a new one. I try now to config my local CKEditor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants