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

[Solved] Embed text everytime in a paragraph

1 Answer 109 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Bud
Top achievements
Rank 1
Bud asked on 19 May 2009, 08:31 AM
Hi, I'm using Rad Lite and I want to automaticly embed text into a paragraph tag. Even a single line of text should be in a paragraph.
If I add the paragraph tag manually in html mode, it is getting removed when I switch back to design mode.
The NewLineBr setting is set to false.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 22 May 2009, 08:33 AM
Hi Bud,

By default, Internet Explorer wraps the content inside a paragraph. We got many requests to change this behavior, because it was 'tricking" the validators to believe that there is content in the editor. Secondly it was spoiling the layout of page because the content loaded in the editor without the paragraph would be returned surrounded by a paragraph.

We decided to change this IE behavior and remove the paragraph because from our communication with customers, it appears that wrapping the text in a paragraph is done rarely.

Unfortunately, RadEditor Lite does not offer the possibility to disable the filter responsible for the wrapping paragraph tag stripping because the old classic RadEditor does not offer a property or API for this.

In the new version of RadEditor for ASP.NET AJAX that is used in the full featured version of RadEditor for MOSS we implemented the possibility to disable content filters using the RadEditor server-side API and it is possible to disable the FixEnclosingP content filter (which is responsible for the <p></p> tags stripping) of RadEditor by setting the DisableFilter method below in your codebehind:

RadEditor1.DisableFilter(EditorFilters.FixEnclosingP);

or you can set the ContentFilters property in the ListConfigFile.xml / ConfigFile.xml file and not specify the FixEnclosingP value. You can see the following help article for more information: Content Filters.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Bud
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or