RadEditor single paragraph problem

5 posts, 0 answers
  1. David
    David avatar
    2 posts
    Member since:
    Jul 2008

    Posted 22 May 2009 Link to this post

    I am using the version of RadEditor that comes with Sitefinity 3.6.1936 and am having an issue when the content is just one line or paragraph long.

    After entering a line of text, there will be no paragraph tags wrapping the text. If I use the HTML view to wrap the text in paragraph tags and then save, this will work. If I then edit the text again, even if no changes are actually made, the paragraph tags will be stripped out.

    I am using IE8, this is because the editor in Firefox producing code like the following:

    Paragraph number one.
    Paragraph number two.

    Is there a configuration option that I can stop the RadEditor from removing the paragraph tags? Is this a know bug?

    Dave Cooper
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    78 posts

    Posted 22 May 2009 Link to this post

    Hi David,

    Thank you for using our services.

    The reported problem has been fixed in our internal build. However, the problem is that in Sitefinity there are almost 59 project that are build against certain version of Telerik.Web.UI which means that making an custom upgrade could cause other problems for your website.

    We came up with a temporarily solution. First you need to map the external templates for the views you are going to use. Then, open mapped templates and set the following properties in the RadEditor declaration:

                        <ImageManager ViewPaths="~/Images" UploadPaths="~/Images" DeletePaths="~/Images" /> 
                        <MediaManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" /> 
                        <FlashManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" /> 
                        <DocumentManager ViewPaths="~/Files" UploadPaths="~/Files" DeletePaths="~/Files" /> 
                            <telerik:EditorCssFile Value="~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorCssFile.css" /> 

    In the declaration above we are diabling NewLineBr which inserts a new line or a paragraph when the [Enter] key is pressed.   

    We have also removed the following ContentFilter  - FixEnclosingP(This filter removes a paragraph if the whole content is inside it). Let us know if there are any problems after applying the changes we recommend.

    Best wishes,
    Ivan Dimitrov
    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.
  3. David
    David avatar
    2 posts
    Member since:
    Jul 2008

    Posted 26 May 2009 Link to this post

    Thank you for your replay. Removing the FixEnclosingP filter has fixed the issue.

    Dave Cooper
  4. Mari Fujii
    Mari Fujii avatar
    1 posts
    Member since:
    Feb 2006

    Posted 07 May 2010 Link to this post

    Where is this referenced??  We just upgraded our RadEditor for Sharepoint MOSS to and are still experiencing the problem where if we type in a single paragraph into the editor, RadEditor doesn't wrap the line with the <p> </p> tags.  We have to hit Enter and add a 2nd blank paragraph each time we need to force the editor to wrap our 1st line with the <p></p> tags.

    I have the following in a page layout for our Sharepoint publishing site:

    <telerik:RadHtmlField FieldName="content_Intro" runat="server" InputFieldLabel="Introduction Content" DisplayWidth="450px" ToolsFile="/_wpresources/RadEditorSharepoint/customConfigToolsFiles/ToolsFile_NoImagesTables.xml" ConfigFile="/_wpresources/RadEditorSharepoint/customConfigToolsFiles/ConfigFile.xml"></telerik:RadHtmlField>

    If I attempt to add ContentFilters="FixEnclosingP", SP Designer gives me an error Type 'Telerik.Sharepoint.FieldEditor.RadHtmlField' does not have a public property named 'ContentEditors'.

    If we cannot fix this single paragraph issue, we are probably going to have to go back to the MOSS Rich Text Editor control because this has been an ongoing issue for our content authors who don't want to enter a 2nd blank paragraph each time for a single paragraph.
  5. Stanimir
    Stanimir avatar
    1654 posts

    Posted 12 May 2010 Link to this post

    Hi Mari,

    In order to modify the content filters of RadEditor modify the respective ConfigFile.xml. Add the following element:
    <property name="ContentFilters">RemoveScripts,MakeUrlsAbsolute,FixUlBoldItalic,FixEnclosingP,IECleanAnchors,MozEmStrong,ConvertFontToSpan,ConvertToXhtml,IndentHTMLContent,ConvertCharactersToEntities</property>

    Then remove the filter, which you want to disable from the comma separated string.

    If you want to disable all the filters add the following line:
    <property name="ContentFilters">None</property>

    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.
Back to Top