New to Telerik UI for ASP.NET AJAX? Download free 30-day trial


This event is raised just before the RadEditor content is filtered and encoded. This happens when the page is POST-ed to the server (a postback or an AJAX request is initiated).


The code below demonstrates how to strip the Word formatting automatically on page submit using the OnClientSubmit event and FormatStripper command of RadEditor. The solution is useful for browsers that do not provide onpaste event.

<script type="text/javascript">
    function OnClientSubmit(editor)
        var toSubmit = confirm("Are you sure, you want to strip the word formatting?");
        if (toSubmit)"FormatStripper", { value: "WORD" });
<asp:Button ID="Button1" runat="server" Text="Submit" /> 

Other possible values for the FormatStripper command are All, ALL_NO_BRAKES, CSS, SPAN, FONT, WORD_ALL and WORD_NO_FONTS.

In this article