0

I am trying to copy and paste from a word-document to a rich text field in my web application. The content has both words and an image so the whole content is in HTML. When I copy it, the image tag looks like this on my clipboard:

<img width=190 height=266\r\nsrc="file:///C:/Users/User101/AppData/Local/Temp/msohtmlclip1/01/clip_image001.png"\r\nalign=left hspace=12 v:shapes="Picture_x0020_9">

but the browser is unable to read this file location and thus the copied image turns out like this :

after pasing the content in browser rich text component

with the following console error: enter image description here

SSB
  • 1,572
  • 2
  • 10
  • 12
  • Similar question was mentioned here [Cannot open local file](https://stackoverflow.com/questions/39007243/cannot-open-local-file-chrome-not-allowed-to-load-local-resource) May be this will help – Vsevolod Feb 09 '23 at 09:13

0 Answers0