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

Stripped NewLines with Text-property

1 Answer 37 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Linus
Top achievements
Rank 2
Linus asked on 30 Mar 2011, 02:39 PM
Hi!

I just noticed a weird behaviour (in my opinion) with the Text-property of the editor.

If I have the following text:

Row 1<br />
Row 2<br />
<br />
<br />
Row 5<br />
<br />
<br />
<br />
<br />
Row 10

The Content-property reveals:
Row 1<br />\r\nRow 2<br />\r\n<br />\r\n<br />\r\nRow 5<br />\r\n<br />\r\n<br />\r\n<br />\r\n<br />\r\nRow 10

However, the Text-property reveals:
Row 1\n Row 2\n\n Row 5\n\n Row 10

It looks like two or more NewLines are stripped down to two NewLines on the Text-property.

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 30 Mar 2011, 03:17 PM
Hi Linus,

Thank you for bringing this problem to our attention. I have logged it into our database and we will do our best to have it fixed for one of the upcoming releases. Unfortunately, I am unable to provide a suitable workaround at this point. You can follow the development of this issue in our PITS system: Public URL

As a small token of gratitude I have updated your Telerik points.

Best wishes,
Dobromir
the Telerik team
Tags
Editor
Asked by
Linus
Top achievements
Rank 2
Answers by
Dobromir
Telerik team
Share this question
or