UL list disappear after hitting enter

1 Answer 18 Views
Editor
GILLES
Top achievements
Rank 1
GILLES asked on 01 May 2022, 03:35 AM

Hi there,

I couldn't find any answer in the forum regarding my issue to I decided to ask for help. I have some custom html with css class and I simply use the return key to add new text, the whole ul list is deleted( see attached file).

To use it select HTML mode as the file is in HTML. Then change to text mode to be able to edit it. Put the curser at the end of the last bullet of the list then enter. The whole UL will be deleted.

Does anybody knows why this is happening?

Thank you,

Gilles

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 May 2022, 10:36 AM

Hi Gilles,

I examined the provided content and noticed that the reported behavior is due to that the content you load is invalid HTML since according to the W3C HTML specification it is not allowed to have tags different than <li> inside <ol> and <ul> list elements. In your case, your content contains span tags inside the <ul> tags which are not allowed:

<ul>
  <span class="contentText">
  <li>Est. Install Time: 30-45 minutes</li>
  <li><a href="https://s3.amazonaws.com/roughcountry/install/921106290.pdf" target="_blank">View Instruction Sheet</a></li>
  </span>
</ul>

 

Regards,
Rumen
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Editor
Asked by
GILLES
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or