Hello Expert,
I am getting an issue in disable auto correction of html element.
I have a RadEditor where I want to get and set any none valid/formatted html element as like "<noclick> Somethings".
I tried to do this, my code taking none valid/formatted html element as like "<div>Hello World" and giving this same value in server side and I can save this value in database. Then I retrieve this html element from database and bid this html element to RadEditor.Content. But when I browse this page; I can see this value are showing as <div>Hello World</div> in RadEditor . That's mean its adding end tag to correct html format. But I don't need to add this end tag in my html elements.
Here is my code:
<telerik:RadEditor ID="txtTextScript" runat="server" Font-Size="Larger" EditModes="Html" ContentAreaMode="Div" ContentFilters="None" Height="100" Width="349px">
<Tools>
<telerik:EditorToolGroup >
</telerik:EditorToolGroup>
</Tools>
</telerik:RadEditor>
protected void Page_Load(object sender, EventArgs e){
txtTextScript.DisableFilter(Telerik.Web.UI.EditorFilters.ConvertToXhtml);
}
I tried by following this link but still not working
http://www.telerik.com/forums/how-to-disable-auto-correction-of-html-elements?actionMode=replyThread
I am waiting for a quick response from someone.
Thanks
Aminul
I am getting an issue in disable auto correction of html element.
I have a RadEditor where I want to get and set any none valid/formatted html element as like "<noclick> Somethings".
I tried to do this, my code taking none valid/formatted html element as like "<div>Hello World" and giving this same value in server side and I can save this value in database. Then I retrieve this html element from database and bid this html element to RadEditor.Content. But when I browse this page; I can see this value are showing as <div>Hello World</div> in RadEditor . That's mean its adding end tag to correct html format. But I don't need to add this end tag in my html elements.
Here is my code:
<telerik:RadEditor ID="txtTextScript" runat="server" Font-Size="Larger" EditModes="Html" ContentAreaMode="Div" ContentFilters="None" Height="100" Width="349px">
<Tools>
<telerik:EditorToolGroup >
</telerik:EditorToolGroup>
</Tools>
</telerik:RadEditor>
protected void Page_Load(object sender, EventArgs e){
txtTextScript.DisableFilter(Telerik.Web.UI.EditorFilters.ConvertToXhtml);
}
I tried by following this link but still not working
http://www.telerik.com/forums/how-to-disable-auto-correction-of-html-elements?actionMode=replyThread
I am waiting for a quick response from someone.
Thanks
Aminul