Sitecore and Snippets: HTML Formatting Problem

2 posts, 0 answers
  1. Christina
    Christina avatar
    1 posts
    Member since:
    Aug 2016

    Posted 01 Aug Link to this post

    We recently upgraded Sitecore to the 8.1 Update 3 version. With the upgrade path, the Telerik assembly was also updated. After the upgrade, we started receiving complaints about snippet formatting being changed when accepting the change. Below is a before and after view of the content.

    Does anyone have any tips on a fix or what the next step should be? Thanks!

     

    Example Snippet Code:

    <!-- mug right -->
    <div class="mug right">  <img alt="" width="80" height="106" src="~/media/14B3501FFB3A422C911BD4D43F35A44D.ashx" />
    <p class="name"><strong>Name</strong></p>
    </div>
    <!-- /mug right -->

    What it looks like after accepting:

    ...paragraph content ends here.</p>

    <p class="BodyCxSpMiddle"><!-- mug right -->
    <div class="mug right">  <img alt="" width="80" height="106" src="~/media/14B3501FFB3A422C911BD4D43F35A44D.ashx" />  </div>
    </p>
    <p class="name"><strong>Name</strong></p>
    <p class="BodyCxSpMiddle">
    <div class="mug right">&nbsp;</div>
    <!-- /mug right --></p>

    <p>Content starts back up...

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 02 Aug Link to this post

    Hi Christina,

    This does not look like markup created by the RadEditor Track Changes feature (you can compare in this demo) and I advise that you contact the Sitecore support team for help because it seems like the issue comes from the content or from other custom functionality implemented in Sitecore.

    The only other thing I can offer at the moment is that you review the following article on a change we implemented a few years ago in RadEditor that pertains to handling block elements and formatting that ams to make RadEditor consistent with common desktop editors: http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/changes-and-backwards-compatibility/inline-and-block-commands-behavior-change. Whether this is where the change stems from greatly depends on the custom commands being implemented in Sitecore and the Telerik version in use.

    Regards,

    Marin Bratanov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top