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

Firefox adding <br/> tag at the end of kendo editor user input

1 Answer 61 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Off
Top achievements
Rank 1
Off asked on 27 Apr 2020, 07:47 PM

I have a simple kendo editor in my MVC app. When using Firefox, BR tag is being added at the end of the string typed into the editor. This does happen in Firefox only.

 

@(Html.Kendo().Editor().Name("MyEditor")

.HtmlAttributes(new { cols = "5", rows = "5", style = "width: 500px;height:50px" })

.Tools(tools => tools.Clear()))

 

var r = $('#MyEditor').data('kendoEditor').value()

 

How should it be fixed, so I don't get the unwanted html?

1 Answer, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 29 Apr 2020, 01:33 PM

Hello,

Unfortunately I was not able to reproduce the problem based on the provided information. Could you please review the attached project to see if I am missing something? Normally, the tag is added so that the editable area could be focused. But it is rather added from Firefox and not from Kendo. In any case, the component should be clearing the tag, so I would appreciate if you could assist me in reproducing the behavior. Feel free to modify the project.

Looking forward to your reply.

Regards,
Martin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Editor
Asked by
Off
Top achievements
Rank 1
Answers by
Martin
Telerik team
Share this question
or