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

OnClientSubmit FormatStripper args

3 Answers 80 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Erick Burgess
Top achievements
Rank 1
Erick Burgess asked on 26 Aug 2010, 06:36 PM
What are the available args/options for the OnClientSubmit FormatStripper (ie: WORD, WORD_NO_FONTS, etc).  I can find no documentation on these.

3 Answers, 1 is accepted

Sort by
0
Rumen Jekov
Top achievements
Rank 1
answered on 26 Aug 2010, 10:44 PM
Hi,

Here they are

<script type="text/javascript">
function OnClientSubmit(editor)
{
        //other possible values are All, ALL_NO_BRAKES, CSS, SPAN, FONT, WORD_ALL and WORD_NO_FONTS
        editor.fire("FormatStripper", {value : "WORD"});
}
</script>
<telerik:RadEditor runat="server" OnClientSubmit="OnClientSubmit" ID="RadEditor1"
...

Best regards,
Rumen
0
Chris Cottrell
Top achievements
Rank 1
answered on 24 Feb 2011, 05:58 PM
What about the option that is named ConvertWordLists? Just can't seem to find this anywhere
0
Rumen
Telerik team
answered on 25 Feb 2011, 05:02 PM
Hi Chris,

The requested feature is not available for the FormatStripper command and I logged your requirement as a future request that we will implement in one of the upcoming versions of RadEditor. Here you can find the PITS Issue: Public URL.

Currently, you can achieve your scenario using the following code:
Copy Code
<telerik:RadEditor ID="RadEditor1" OnClientSubmit="OnClientSubmit" runat="server">
</telerik:RadEditor>
<script type="text/javascript">
    function OnClientSubmit(editor) {
        editor.set_html(Telerik.Web.UI.Editor.Utils.convertWordLists(editor.get_html()));
        editor.fire("FormatStripper", { value: "WORD_ALL" });
 
        alert(editor.get_html(true));
    }
</script>



Kind regards,
Rumen
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Editor
Asked by
Erick Burgess
Top achievements
Rank 1
Answers by
Rumen Jekov
Top achievements
Rank 1
Chris Cottrell
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or