Get html from clipboard in IE

I want to copy / paste images in Rich Text Editor (tinymce). In Chrome, I use the following code to get the image, and it works well,

event.clipboardData.getData('text/html') 

But in IE11, functionality will be broken using the following code,

 window.clipboardData.getData('text/html') 

I can only get the image name from the clipboard using the following code,

 window.clipboardData.getData('Text') 

How do I copy an image from the clipboard in IE11?

+5
source share

Source: https://habr.com/ru/post/1266401/


All Articles