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

Paragraphs in DotNetNuke?

1 Answer 35 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Marcus
Top achievements
Rank 1
Marcus asked on 05 Jul 2009, 02:36 PM
Hi,

I'm using the radeditor as my default DNN editor. I need to set it up so that everything is automatically wrapped in a Paragraph tag.

Can this be done?

Thanks,

Marcus

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Jul 2009, 02:53 PM
Hello Marcus,

By default, IE wraps the initial content in a <p></p> tag, but this tag spoils the design of the content when it is displayed outside of the editor as well as tricks the validators that the editor's content area is not empty. That is why we implemented the FixEnclosingP filter that removes this paragraph if the whole content is inside it.

If you are using the new RadEditor for ASP.NET Ajax then you can easily disable the FixEnclosingP filter by setting the ContentFilters property in the ConfigFile.xml file. This filter removes a paragraph if the whole content is inside it.

The ContentFilters property can be set from the editor configuration file (ConfigFile.xml). The file is located at \DesktopModules\TelerikWebUI\RadEditorProvider\ in your DNN site. For example to disable the FixEnclosingP filter set the ContentFilters property tag and list only the filters (devided by commas) that you want to be enabled:

  <property name="ContentFilters">ConvertFontToSpan,ConvertToXhtml</property>

More information about the built-in Content Filters is available here.

Kind 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
Marcus
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or