I am using RadEditor as textbox and don't want any html tag to be added when Editor's content is saved. I set the attribute
in the editor. It's not working. I still see the content being saved in my Table in the DB as
I want the content to be saved as plain text like "TestContent" and not with the break tags and p tags.
What is the solution to this? Please help. Thanks.
My Editor is as follows:-
StripFormattingOptions="All"
"TestContent<
BR
>"
What is the solution to this? Please help. Thanks.
My Editor is as follows:-
<
telerik:RadEditor
ID
=
"Editor1"
EditModes
=
"Design"
DialogsCssFile
=
"~/Skins/Default/DialogCSS.css"
SpellCheckSettings-AjaxUrl="~/Telerik.Web.UI.SpellCheckHandler.axd" Font-Bold="false"
ToolsWidth="360px" Content='<%#Eval("Content") %>' TabIndex="18" Height="30px" Width="100%"
BorderWidth="0px" ContentFilters="ConvertCharactersToEntities" runat="server"
StripFormattingOptions="All" ToolbarMode="ShowOnFocus" ToolsFile="~/Skins/BasicTools.xml"
Language="en-GB" SpellCheckProvider="EditDistanceProvider" SpellEditDistance="2"
OnClientSelectionChange="OnClientSelectionChange">
<
CssFiles
>
<
telerik:EditorCssFile
Value
=
"~/css/EditorAsTextBox.css"
/>
</
CssFiles
>
<
Tools
>
<
telerik:EditorToolGroup
>
<
telerik:EditorTool
Name
=
"AjaxSpellCheck"
Text
=
"AjaxSpellCheck"
/>
</
telerik:EditorToolGroup
>
</
Tools
>
<
Content
>
</
Content
>
</
telerik:RadEditor
>
I added the following script on my page and set RadEditor's attribute OnClientSubmit
="OnClientSubmit
"..
didn't work..
<
script
type
=
"text/javascript"
>
function OnClientSubmit(editor)
editor.fire("FormatStripper", { value: "All" });
</
script
>