This is a migrated thread and some comments may be shown as answers.

Loss of Style & Image

1 Answer 88 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 23 Jun 2014, 12:55 AM
Hi,
I'm hoping to find a way to keep styles on Html that is pasted in to the editor. It also loses some part of image.

Here is a short video: https://www.youtube.com/watch?v=qZq5LxoTCbo

Please let me know if there is a tip or workaround to this.
Thanks

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 23 Jun 2014, 06:57 AM
Hello Adam,

One of the Kendo UI Editor design goals is to clean up formatting so that it matches the content of your site -- so the loss of formatting is likely to happen when pasting within it. The issue with the image has two probable causes: either the pasted content has some styles that break the page layout, or the page itself has styles that change the image. With only the video, my best guess is that the image has a CSS float:left applied, thus the other content is positioned next to it. This may be resolved by applying a "clear fix" to the container in which you render the content. If this recommendation does not help, please provide some way for us to reproduce the problem -- for example the content that is provided to the paste handler or a page that shows the rendered content.

Regards,
Alex Gyoshev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Editor
Asked by
Adam
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or