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

Issue with Rich Text Editor and lists in Sitecore

1 Answer 210 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Radek
Top achievements
Rank 1
Radek asked on 09 Aug 2016, 09:33 AM

Hello,

Recently I have experienced issue with Rich Text Editor in Sitecore which is based on Telerik Editor. Sometimes creating numbered/non-numbered list from RTE caues problems.

I have attached link to RTE_edit.swf - in 1:07 there is showed how the issue looks.

http://www6.zippyshare.com/v/KjSb879E/file.html

 

Guys from Sitecore support provided me with some resolution, but it does not work well :(

http://pastebin.com/9QcS7n4n

 

Do you have any clue how it can be resolved? Or maybe you can provide the code for InsertOrderedList and InsertUnorderedList commands?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 09 Aug 2016, 11:36 AM

Hi Radek,

It looks like this is an old version of the editor and the NewLineMode is BR, so the block commands like the one that handles lists does not work as expected. What happens is that when you enter new lines, they are separated from the previous content with <br /> elements and they get included in the <li> that gets created.

What I can suggest you look into is the following:

  • try setting NewLineMode to P to get paragraphs like in MS Word
  • try upgrading the Telerik controls (to get the updated editor) to the latest version. At the time of writing this is R2 2016 SP1. I am attaching here a short video that shows the expected (correct) behavior with the current version, and you can also test that here.
  • If you are using a version newer than Q2 2013 or Q3 2013, try getting the old commands script as described in this article: http://docs.telerik.com/devtools/aspnet-ajax/controls/editor/changes-and-backwards-compatibility/inline-and-block-commands-behavior-change. It provides a lot of information on the commands, how they work and what we did. In a nutshell, we stopped relying on the browser commands and implemented our own that work properly.

I must note that this is not an issue that is likely to be fixable without an upgrade of the Telerik assembly because the one Sitecore provides is very old, does not support the current browsers, Sitecore have a number of modifications on top of it and it does not contain all the improvements we have made in recent years (and there are a lot of them). For upgrading the Telerik assembly, I advise you reach out to the Sitecore support team and to telerik-sales[at]progress.com to get information on the feasibility of such an endeavor.

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
Radek
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or