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

remove style tag from html tab of editor

1 Answer 123 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Gaurav
Top achievements
Rank 1
Gaurav asked on 06 Aug 2010, 01:43 PM
Hi 

I  am using StripFormattingOnPaste = "css"  for removing style tags from editor content . but it is removing style tags only when we paste content on design tab of editor .

It is not removing style tags when we paste html content on the html tab of  editor .

please  do possible 

Thanks
 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 09 Aug 2010, 05:14 PM
Hi Gaurav,

You can strip the CSS formatting when submitting the content using the following code:

<script type="text/javascript">
function OnClientSubmit(editor)
{
     editor.fire("FormatStripper", {value : "CSS"});
}
</script>
<telerik:RadEditor runat="server" OnClientSubmit="OnClientSubmit"/>

Greetings,
Rumen
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
Tags
Editor
Asked by
Gaurav
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or