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

<p> tags removed and HTML markup issue

3 Answers 130 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Tommy
Top achievements
Rank 1
Tommy asked on 07 Oct 2008, 12:06 PM
Hi
I have set up the editor and linked a toolfile from my menu.
On my aspx page inside the content tag i have inserted the following:

<Content>
<p>Please enter your text</p>
</Content>

 

However when the page is loaded the <p> tags are removed just showing 'Please enter your text'.
Any thoughts would be great.

As a second point if you type into the editor a pound sign in the HTML it shows as '£' rather than &pound;. This is the same for all symbols is there anyway are this?

Thanks in advance
T

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 07 Oct 2008, 01:38 PM
Hi Tommy,

By default, RadEditor automatically strips the wrapping P tags, because they can spoil the design of the produced content and could mislead the validators that the content area of RadEditor is not empty.

Nevertheless, you can easily disable this editor's filter by setting:
RadEditor1.DisableFilter(EditorFilters.FixEnclosingP);

In regards to the second issue - it is browser related and you can see how to fix it in the following KB article: Converting Unicode symbols to numeric HTML entities using a content filter.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Digital Man
Top achievements
Rank 2
answered on 05 Apr 2011, 08:07 PM
Can this be set in the ConfigFile?
0
Rumen
Telerik team
answered on 06 Apr 2011, 09:44 AM
Hello Dan,

Could you please specify which version of RadEditor you use in your application, because RadEditor for ASP.NET AJAX does not offer a ConfigFile.xml file? Let me know if you use RadEditor in MOSS / SharePoint or RadEditor Classic.

If you use RadEditor for ASP.NET AJAX in a normal ASP.NET site you can configure and set its properties through ASP.NET Themes, e.g.

skin file:

<%@ register tagprefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" %>
<telerik:radeditor runat="server" ContentFilters="ConvertToXhtml,ConvertFontToSpan" Width="500" Height="500">
    <content>      
        <b>Setting inline properties</b>
    </content>
</telerik:radeditor>


Greetings,
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
Tags
Editor
Asked by
Tommy
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Digital Man
Top achievements
Rank 2
Share this question
or