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
Expected result
Hi Aurélien,
So far we don't have plans to make any changes in that direction.
Regards,
Martin
Progress Telerik
Ok thank you.
Any chance to change this behavior ?
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