Issue with Rich Text Editor and lists in Sitecore

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

    Posted 09 Aug Link to this post

    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?

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 09 Aug Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top