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

Sitecore and Snippets: HTML Formatting Problem

1 Answer 155 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Christina
Top achievements
Rank 1
Christina asked on 01 Aug 2016, 07:54 PM

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...

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 02 Aug 2016, 10:34 AM

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.
Tags
Editor
Asked by
Christina
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or