Paste Image in Editor with Support for Word

2 posts, 1 answers
  1. Raymond
    Raymond avatar
    65 posts
    Member since:
    Oct 2013

    Posted 05 Mar 2015 Link to this post

    I am using the Editor and some of my users are pasting images rather than using the "Insert Image" option.  The Editor saves these images using the tag;

    <img height="443" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEU.../>

    This data is then saved to a database and I have provided the users with a Word template that connects to the database and inserts the text.  Unfortunately Word doesn't support images using the "data:image/png;base64" encoding so the images aren't displayed.

    Other than instructing the users to use "Insert Image" rather than pasting them into the Editor (and ensuring they save the images to a location where all other users have access) is there any way to convert the image so it can be viewed in Word?

    Thanks in advance...
  2. Answer
    Alex Gyoshev
    Alex Gyoshev avatar
    2497 posts

    Posted 09 Mar 2015 Link to this post

    Hello Raymond,

    This depends on the way you convert HTML to Word documents. This is out of scope of the supported functionality, since Kendo UI does not create the Word documents -- but you can see this SO thread for suggestions how to handle it.

    Alex Gyoshev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top