[kendo-UI 2017 R3 SP2] editor use br tag instead of p tag as new line

1 Answer 44 Views
Editor
twintwin6593
Top achievements
Rank 1
twintwin6593 asked on 07 Dec 2021, 07:58 AM | edited on 09 Dec 2021, 06:02 AM

Hello,

I used the code to use the br tag instead of the p tag.

defaultTools.insertLineBreak.options.shift = false;
defaultTools.insertParagraph.options.shift = true; 

A new line is marked br tag.

but when I enter and enter the styled text(bold etc), the enter format disappears.
How can I fix it in the 2017 version?

https://dojo.telerik.com/ANaGUDAT


1 Answer, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 09 Dec 2021, 10:46 AM

Hi,

I have tested the provided example with version 2021.1.224 and also with version 2017.3.1018 (Dojo with version 2017 is linked here). The behavior on my side is the same. If I try to press enter <br> tag is added. <br> tag is added also after selecting bold, italic, etc. (screencast) Please let me know if I am missing something.

Could you please provide more information about the exact scenario and the desired result? I will appreciate it if you could send us a step-by-step guide on how to replicate the behavior. This way I could understand the issue better and provide further assistance. 

Regards,
Neli
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/.

twintwin6593
Top achievements
Rank 1
commented on 10 Dec 2021, 12:16 AM | edited

 

Hello,

Sorry, I attach a detailed guide.

When entering bold text, br tag appears in the <strong>.

But, It occurs when the problem is in the following situations.

 

Let's take an example of bold text style.

case1 :

1. Type the bold text, type another text in the next line.

2. Press the apply bold style button, the line change disappears.

case2 : 

1. Type the bold text and copy the this text line.

2. Change the line and paste it.

3. The line change disappears.

 

Attached is a video with an error.

 

If you do text without style, there is no problem.

It only occurs when you put on style.

 

Finally, this problem seems to have been solved since kendo ui 2018 R2 ver.

 

Thank you.

Neli
Telerik team
commented on 14 Dec 2021, 11:13 AM

Hi Mike,

Thank you for providing more details on how the issues can be replicated. The behavior seems to be correct starting with the Kendo UI for jQuery 2018 R2 release

Here you will find a Dojo example using the2018.2.516 version. The described issues are not replicated starting with the above-metnioned version. Thus, I would suggest you upgrade either to the latest version (2021.3.1207) where the issue is also not replicated or at least to the 2018.2.516 version. 

Regards,

Neli

Tags
Editor
Asked by
twintwin6593
Top achievements
Rank 1
Answers by
Neli
Telerik team
Share this question
or