cosmocode / dokuwiki-plugin-imgpaste

Add images to DokuWiki pages by simply pasting them. Only modern browsers supported
https://www.dokuwiki.org/plugin:imgpaste
10 stars 10 forks source link

Firefox compatibility #2

Closed amercier closed 8 years ago

amercier commented 10 years ago

That would be a great enhancement to make it work on Firefox. I think this is definitely possible. PasteBoard is doing it (see https://github.com/JoelBesada/pasteboard/blob/master/assets/js/modules/copyandpaste.coffee for details) so I think this is definitely possible.

lawre commented 10 years ago

Possible fix suggestion.

I also +1 for firefox compatibility. I'm a long-time user of Joel's PasteBoard, back when it was called PasteShack. That original javascript DID work fine with Firefox, but then broke one day when FireFox decided to change how it accessed the clipboard.

This is the original workaround for getting PasteShack to work with Firefox:

This commenter created a jQuery plugin that DOES work with firefox, so maybe you can snarf his code

LMS235 commented 10 years ago

Also +1 for FF! I have tested the JQuery but without success to work with dokuwiki :(

Klap-in commented 9 years ago

Suggestion at the old DokuWiki issue tracker FS#2865 for an uploader : https://github.com/FineUploader/fine-uploader Javascript solution, that suggest to be cross browser.

proxymus commented 9 years ago

I would prefer browser independence like it is the case with FineUploader.

drogenlied commented 8 years ago

From Firefox 50 onwards, this should be fixable or actually fixed: https://bugzilla.mozilla.org/show_bug.cgi?id=891247 https://bugzilla.mozilla.org/show_bug.cgi?id=906420

After briefly looking at the code, I would guess it may just work(TM) from FF50 onwards.

drogenlied commented 8 years ago

Ok, I tested this with FF50 beta 7 on Windows 8.1 and the 2012 release of dokuwiki and it works!