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
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 ContentFiltersproperty tag and list only the filters (devided by commas) that you want to be enabled: