0
When copying text along with images from a Word file to a Kendo editor, the issue might be related to how the editor handles image data. To ensure that both text and images are copied correctly, you may need to handle the image data separately during the copy operation. One approach is to extract the image data from the Word file and insert it into the Kendo editor as an image element.
// Extract image data from Word file
byte[] imageData = GetImageDataFromWordFile("path/to/word/file.docx");
// Insert image into Kendo editor
string imageHtml = $"<img src='data:image/png;base64,{Convert.ToBase64String(imageData)}'>";
kendoEditor.InsertHtml(imageHtml);
By extracting the image data and inserting it as an image element with the appropriate base64 encoding, you can ensure that both text and images are copied correctly into the Kendo editor.