Loss of Style & Image

2 posts, 0 answers
  1. Adam
    Adam avatar
    7 posts
    Member since:
    May 2007

    Posted 22 Jun 2014 Link to this post

    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
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2512 posts

    Posted 23 Jun 2014 Link to this post

    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!
     
Back to Top