This is a migrated thread and some comments may be shown as answers.
Deleting <p> tag with whitespace - Track Changes issue
1 Answer 3 Views
This is a migrated thread and some comments may be shown as answers.
Aidan
Top achievements
Rank 1
Aidan asked on 27 Mar 2018, 12:30 AM

I've noticed some more unexpected behavior relating to the Telerik Editor's track changes feature. It seems that when a <p> element contains nothing but whitespace (newline, space or tab characters) any time one character is deleted, the entire element is deleted. Another issue relating to this, is that when the line is deleted, if there is another whitespace <p> element above the element, the cursor is placed not on that line, but on whatever line is next without any whitespace. This behavior can be reproduced in the track-changes demo (Found at https://demos.telerik.com/aspnet-ajax/editor/examples/trackchanges/defaultcs.aspx ) ,by following these steps:

1. Create a <p> element containing some text

2. Below this element, create 3 more containing nothing but whitespace

3. On the last line enter a space and then press the backspace key

The cursor will be moved to the <p> element containing text and the entire element will be deleted (not just the space which was entered)

Do you have any suggestions or workarounds for this issue?

 

Kind Regards,

Aidan Harris

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 28 Mar 2018, 04:21 PM
Hello Aidan,

Thank you for reporting this bug.

You are the first to report it and we do not have a ready for use solution of how to improve the backspace command behavior. I logged the problem in our backlog and you can subscribe to it in the feedback portal: When Track Changes is enabled, the backspace will delete all empty paragraphs above it.

We do appreciate your feedback and I updated your Telerik points for it.

Best regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Asked by
Aidan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or