Telerik RadEditor Orphan Paragraph

30 views
Skip to first unread message

NP

unread,
Jul 23, 2010, 4:02:39 PM7/23/10
to RedDot CMS Users
I know this issue has come up in some comments on ye olde unofficial
blog, but I haven't yet seen a RedDot-specific solution posted for it:
When you enter a single paragraph in the Telerik Editor in RedDot v9,
it doesn't have <p> tags around it.

I did some digging around and found this promising article in
Telerik's forums: http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor-single-paragraph-problem.aspx.
It looks like the key to it all is removing the "FixEnclosingP"
content filter from either the RadEditor declaration or an XML config
file.

I found the javascript declaration in \RedDot\CMS\ASP\RadEditor.Net
\RadControls\Editor\Scripts\7_3_4\RadEditor.js. In that, find this:

RadEditorNamespace.FixEnclosingP=function(){
this.IsDom=true;
this.Enabled=true;
this.Name="FixEnclosingP";
this.Description="This filter removes a parent paragraph tag if the
whole content is inside it.";
};

And change this.enabled to false. Paragraph tags return!

However, I doubt Open Text (or Telerik) would approve of this
solution. Has anyone found a better way to take care of this?
Reply all
Reply to author
Forward
0 new messages