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

doesn't work in firefox 26(latest) #25

Open
jurek7 opened this issue Jan 7, 2014 · 12 comments
Open

doesn't work in firefox 26(latest) #25

jurek7 opened this issue Jan 7, 2014 · 12 comments
Assignees
Milestone

Comments

@jurek7
Copy link

jurek7 commented Jan 7, 2014

On paste only(drag & drop works):

TypeError: clipboardData.items is undefined

@Rovak
Copy link
Owner

Rovak commented Jan 7, 2014

Hi Jurek,

This may relate to a comment i posted earlier about browser compatibility, #22 (comment)

I will doublecheck if anything has changed in the latest firefox which may allow the browser to read clipboard data during a paste event.

@jurek7
Copy link
Author

jurek7 commented Jan 7, 2014

i checked similar javascript on http://pasteboard.co/ and it works.

@Rovak
Copy link
Owner

Rovak commented Jan 7, 2014

Thanks for pointing to a working implementation in firefox, most likely it is using a contenteditable element which catches paste event with the data. I'm not sure how this works in combination with a textarea.

I will keep this issue open for further research

@Rovak Rovak mentioned this issue Jan 31, 2014
16 tasks
@fcsonline
Copy link
Contributor

I'm totally agree about the compatibility check, however I just created a PR to mitigate this issue.

#31

@Rovak Rovak closed this as completed Feb 11, 2014
@acpadhi
Copy link

acpadhi commented Oct 3, 2014

Here is another link, that may show some pointers about how to do it in firefox.
http://joelb.me/blog/2011/code-snippet-accessing-clipboard-images-with-javascript/

BTW, the link is from the same guy who did pasteboard.co , at least that is what I read in some forum.

I read somewhere else also(can't remember the URL, shall check and post again) which has a working version in Chrome, but for firefox, mentions, just loose focus from the text area and then paste. So I think, that trick could also be used. I had checked it to be working fine too on firefox, but after losing focus from the area of interest.

@Rovak
Copy link
Owner

Rovak commented Oct 8, 2014

Thanks for the pointers, i will try and implement it in version 2

@Rovak Rovak reopened this Oct 10, 2014
@Rovak Rovak added this to the 2.0 milestone Oct 10, 2014
@Rovak Rovak self-assigned this Oct 10, 2014
@Rovak
Copy link
Owner

Rovak commented Oct 10, 2014

Got a prototype working in #41

@acpadhi
Copy link

acpadhi commented Oct 10, 2014

Excellent. Already past midnight here. I will try it over the weekend and report my findings.

For the time being, I am already using your published version in my personal website which i am developing for blogging purposes. I am surely keen to have this working well, and most likely will explore options on how to integrate with CK Editor as well in the simplest way.

Shall keep you posted on my testing with your recent changes around weekend or Monday.

@Rovak
Copy link
Owner

Rovak commented Oct 16, 2014

I just made an update which moved the firefox logic to the core of InlineAttachment, this means it should now "just work" without making any changes to existing code.

I only made it for the default textarea now (see https://github.com/Rovak/InlineAttachment/blob/2.0.0-firefox/demo/input.html), i will add the other editors later.

@layerssss
Copy link

Hi, rovak, you might want to check out my work paste.js. I managed to made a unified image-pasting interface for IE9+/Chrome/Firefox. Hope it can help solve this issue.

Anyway, I still can't make it work for safari. It seems hopeless.

@Rovak
Copy link
Owner

Rovak commented Dec 5, 2014

@layerssss thanks for the pointer! I will take a look at it.

@Rovak
Copy link
Owner

Rovak commented Jul 26, 2015

Looks like Paste events will be supported in Firefox 41, see https://developer.mozilla.org/en-US/Firefox/Releases/41. Will add support when 41 is released

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

No branches or pull requests

5 participants