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

RadEditor stripping html tags I need

2 Answers 260 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 06 Jan 2015, 10:32 PM
I am using the current version of the Telerik UI dll (version 2014.1.225.45)
This is the definition of my RadEditor on my page:


The problem I am having is that when I save the content OR switch to "Design" view and back to the "HTML" view, it is stripping my <body></body> and <html></html> tags

What I want is for the editor to not mess with what I enter in any way.  I thought I had specified this in the definition of the editor on the page.  What properties do I have to set so that the editor does not change anything?

 
<telerik:RadEditor ID="reContent" runat="server" Skin="Office2010Blue" Height="850px" Width="100%" StripFormattingOptions="MSWordRemoveAll"<br>                                ContentAreaMode="Div" EmptyMessage="Add Content Here - Content is Required" StripFormattingOnPaste="MSWordRemoveAll"<br>                                ClientIDMode="Static" NewLineMode="Br" OnClientLoad="OnClientLoad" AllowScripts="true" ContentFilters="None"><br>                            </telerik:RadEditor>


Thanks,
Jim

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 07 Jan 2015, 09:45 AM

Hi Jim,

The current latest version at the time of writing is 2014.3.1209.

Nevertheless, to edit a full HTML page (i.e., have the <html> and <body> tags), you must use the default Iframe ContentAreaMode and not the Div mode: http://demos.telerik.com/aspnet-ajax/editor/examples/completehtmlsupport/defaultcs.aspx.

Also, ClientIDMode=Static is not supported and can cause issues, so I advise that you remove it.


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jim
Top achievements
Rank 1
answered on 07 Jan 2015, 04:19 PM
Hi Marin,
   Thanks for the quick response!  I did try that yesterday and didn't seem to work.  However, I did try again and rebuilt, cleared cache,etc. and seems to be working fine now.  It seems it was having the ContentAreaMode set to "Div" that was the issue.  Not sure why I set it to that in the first place.  I also did remove the ClientIDMode on all of my Telerik controls.

thanks for the help,
Jim
Tags
Editor
Asked by
Jim
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Jim
Top achievements
Rank 1
Share this question
or