Declined
Last Updated: 08 Mar 2024 07:19 by ADMIN
Aurélien
Created on: 01 Mar 2024 14:15
Category: Kendo UI for Angular
Type: Bug Report
0
Form support with Editor does'nt clean the value correctly

Using the Editor component with Form Support, if I choose the style Heading 1 and type some letter.

I clean the value using only backspace key on the keyboard and the value of the form control is <h1></h1>.

 

This is reproductible on the demo : https://www.telerik.com/kendo-angular-ui/components/editor/forms/#toc-template-driven-forms

  • Choose Heading 1 style
  • Type AAA
  • The form value = <h1>AAA</h1>
  • Clean the value using backspace
  • The form value = <h1></h1>

Expected result

  • The form value should be empty
3 comments
ADMIN
Martin
Posted on: 08 Mar 2024 07:19

Hi Aurélien,

So far we don't have plans to make any changes in that direction.

Regards,
Martin
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Aurélien
Posted on: 07 Mar 2024 14:39

Ok thank you.

 

Any chance to change this behavior ?

ADMIN
Martin
Posted on: 07 Mar 2024 11:15

Hi Aurélien,

Thank you for the provided feedback.

Indeed this is the default behavior of the underlying ProseMirror library which Editor is built on.

The tags aren't removed so that the formatting can be persisted even if the value is completely cleared.  If there is a paragraph before the heading, the tag is going to be removed once the cursor reaches the paragraph. But when there is only a heading, the way to clear the formatting is to select all the content (Ctrl + A) and delete it.

Regards,
Martin
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources