# Add IE11 Support for pasting images in the composer

**URL:** https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037
**Category:** Feature
**Created:** [11 Novembre 2014, 5:36am UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037 "2014-11-11T05:36:19Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [11 Novembre 2014, 5:36am UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/1 "2014-11-11T05:36:19Z")

</div>

Turns out pasting images into composer is workable in IE11

[https://github.com/layerssss/paste.js](https://github.com/layerssss/paste.js)

We should get it working.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [17 Gennaio 2015, 2:40am UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/2 "2015-01-17T02:40:32Z")

</div>

Would love to see a community PR in this area! I assume IE11 is now standardizing here…

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [26 Luglio 2016, 12:08am UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/3 "2016-07-26T00:08:51Z")

</div>

@falco would you be interested in researching this?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [27 Luglio 2016, 4:46am UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/4 "2016-07-27T04:46:57Z")

</div>

It looks it’s the same story as Firefox, you can only paste on ContentEditable elements. So I have a plan to extend the Firefox Pasting behavior. Should have something tomorrow.

BTW, it already works on edge.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [27 Luglio 2016, 4:47am UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/5 "2016-07-27T04:47:52Z")

</div>

Even if it is Edge only that would be fine. What we have now is a whole lot of nothing. Bonus points for researching the current state of Safari in this regard as well.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [27 Luglio 2016, 4:51am UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/6 "2016-07-27T04:51:30Z")

</div>

Actually, it’s already [working for me on Edge](https://try.discourse.org/t/can-ms-edge-paste-reddit-memes/371?u=falco) (Build 38.14393.0.0)

The hack would be to add IE 11 support only. Will see what is safari state now.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [27 Luglio 2016, 4:52am UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/7 "2016-07-27T04:52:37Z")

</div>

Oh I was not aware it worked on Edge already. Ie11 support is not a priority. Safari would be way more of our audience.

Edit: remember this topic is from 2014 🌞

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [31 Luglio 2016, 11:31pm UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/8 "2016-07-31T23:31:58Z")

</div>

> [@codinghorror](#):
>
> Safari would be way more of our audience.

Yes, but things aren’t looking good for Safari.

All the documentation I’ve found points to it being not possible atm…

[⚓ T7916 Can't paste images from clipboard in Firefox / Safari](https://secure.phabricator.com/T7916#183490) and [Safari image pasting may be supported · Issue #21 · layerssss/paste.js · GitHub](https://github.com/layerssss/paste.js/issues/21)

Looks like Safari behave like Firefox, but provides a local-only URL inaccessible by online js.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [1 Agosto 2016, 12:07am UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/9 "2016-08-01T00:07:12Z")

</div>

All right, then the only news is this already works on Edge with no changes on our end? That is fine.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [1 Agosto 2016, 12:09am UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/10 "2016-08-01T00:09:01Z")

</div>

And we can begin to ditch the Firefox hack when 50+ gets enough market share:

> [@Firefox 50 makes image pasting hack superfluous](https://meta.discourse.org/t/firefox-50-makes-image-pasting-hack-superfluous/48017):
>
> There is still some time until [Firefox 50 becomes stable in November 2016](https://wiki.mozilla.org/RapidRelease/Calendar), but as a noteworthy number of developers could use it already from September when it will promoted to [Firefox Developer Edition](https://www.mozilla.org/en-US/firefox/developer/) (in fact, I’m using it already with [Firefox Nightly](https://nightly.mozilla.org/)), I suppose it is not too early to point out that the following firefoxPastingHack for pasting images will not be necessary (and even counterproductive) any more due to clipboardData.items being implemented in Firefox 50 (see [Mozilla Bug 906420](https://bugzilla.mozilla.org/show_bug.cgi?id=906420))…

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4 Gennaio 2019, 2:13am UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/11 "2019-01-04T02:13:47Z")

</div>

Did we ever revisit this @falco? Not for IE11 🤣 but for Firefox / Safari?

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [4 Gennaio 2019, 2:38am UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/12 "2019-01-04T02:38:06Z")

</div>

I copy/paste images regularly on Safari (I’ve set up screen grabbing to save the image in clipboard). Just tested on Firefox and it works there too.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4 Gennaio 2019, 2:39am UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/13 "2019-01-04T02:39:12Z")

</div>

Right but can we remove the “Firefox hack”? Or did we already do this when @j.jaffeux reworked the composer? 🤔

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [4 Gennaio 2019, 2:51am UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/14 "2019-01-04T02:51:44Z")

</div>

The hack is still there but looks like we can remove it. Pasting an image works on Firefox/Mac for me without the hack. Will do a quick test in a VM and commit if it’s good there too.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4 Gennaio 2019, 3:08am UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/15 "2019-01-04T03:08:54Z")

</div>

less code = more betterer

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [4 Gennaio 2019, 4:16pm UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/16 "2019-01-04T16:16:52Z")

</div>

Firefox hack removed via [DEV: Remove old \_firefoxPastingHack · discourse/discourse@f400830 · GitHub](https://github.com/discourse/discourse/commit/f400830575d800e7fb2fc206f0967773af120fa4)

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [4 Gennaio 2019, 4:16pm UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/17 "2019-01-04T16:16:55Z")

</div>



---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4 Gennaio 2019, 7:44pm UTC](https://meta.discourse.org/t/add-ie11-support-for-pasting-images-in-the-composer/22037/18 "2019-01-04T19:44:46Z")

</div>

Also Firefox 50 was released November 2016. So we should be well clear of that.
