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

Linebreak Issue

2 Answers 46 Views
Editor
This is a migrated thread and some comments may be shown as answers.
spt3210
Top achievements
Rank 1
spt3210 asked on 16 Aug 2010, 04:22 PM
hi,

I am using RadEditor with default toolset. The issue is, by default value of RadEditor content is EmptyString. I need to validate if user made an entry.

If I enter some data which has a line break, I am unable to remove the data completely. There is always a line break remaining (below HTML).

<p>&nbsp;</p>

I do not see this happening in demo editor, but this is something happening in all screens we are using RadEditor.

This issue is only happening in IE. It's working fine in Mozilla. As attached, I am unable to get rid of that additional line break once I delete the text.

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 19 Aug 2010, 08:51 AM
Hi,

By default, the rich text editing engine of Internet Explorer that RadEditor uses wraps the content inside a paragraph tag - this is the default root <p> tag. If this tag is missing the browser automatically adds it. We got many requests to change this behavior, because it was 'tricking" the validators to believe that there is content in the editor. That is why we implemented the FixEnclosingP content filter which strips this root paragraph.

However, the FixEnclosingP content filter is executed only when loading the editor, switching to HTML mode or submitting the content. If you delete the content, the browser will insert the root <p> tag again and to delete it you should submit the content or switch to HTML mode to strip it. For more information, you can see the attached video at http://screencast.com/t/MTBmYTEy.

Kind regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
spt3210
Top achievements
Rank 1
answered on 24 Aug 2010, 05:04 PM
Hi Rumen,

Thanks for detailed explanation and the vid. I will try to have some workaround, probably having this string in Javascript as a check.


Thanks!
Tags
Editor
Asked by
spt3210
Top achievements
Rank 1
Answers by
Rumen
Telerik team
spt3210
Top achievements
Rank 1
Share this question
or