1
votes

when I try to copy paste an image from Word file to the enhanced text box(Multi line Rich Text Box in SharePoint 2013) it wont work because the enhanced text box at the back end uses nothing but formatted html, if you check the html source of it. Now when you copy a graphic from one one item to another it gets pasted because it still has a reference to add to the src of the image tag, but when you paste from the clipboard there is no reference to be added to the img html tag for the enhanced text box, I can paste rich text just fine (Documents in word copy font sizes correctly) but font color and images are left out. Even I've tried copying the image in a number of different ways (copy file direct from File Explorer, copy image form word) and no luck. Do anybody have the solution for it?

2

2 Answers

0
votes

In my opinion copying from Word into a Richtextbox is not a good idea. Cause it is very hard to modify the content later through the Richtextbox, cause it is not standard html. I dont think that there is a solution for this. Maybe you can try a industry standard solution like Telerik RAD Editor for SharePoint or try to implement CKEditor or TinyMCE by yourself?

0
votes

Instead of copy and paste the image, try to upload the image to a SharePoint library and then reference it with HTML in your text box.

EDIT:

Another thing you can do is encode the image to base64 and paste the code in a img element: https://www.base64-image.de/