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

StripFormattingOptions in config file or tools file

4 Answers 133 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
sayitfast
Top achievements
Rank 2
Iron
sayitfast asked on 09 Dec 2008, 10:39 PM
I'm trying to strip some formatting of text pasted into the editor.

I'm not sure where to place change or how it should be formatted???

<property name="StripFormattingOptions">"MSWordRemoveAll, Css, Font, Span"</property>

The above does not work in the config file....

Any help is appreciated.

Thanks

4 Answers, 1 is accepted

Sort by
0
sayitfast
Top achievements
Rank 2
Iron
answered on 09 Dec 2008, 11:00 PM
The following seems to work for StripFormattingOnPaste

 

   <property name="StripFormattingOnPaste">
                   <item>"MSWordRemoveAll"</item>
                   <item>"Css"</item>
                   <item>"Span"</item>
                   <item>"Font"</item>
    </property>

But StripFormattionOptions gives me an error:

<property name="StripFormattingOptions">
                   <item>MSWordRemoveAll</item>
                   <item>Css</item>
                   <item>Span</item>
                   <item>Font</item>
    </property>

 

0
Lini
Telerik team
answered on 10 Dec 2008, 07:48 AM
Hi,

You need to use StripFormattingOptions and simply list the options separated with commas:

<property name="StripFormattingOptions">MSWordRemoveAll,Css,Span,Font</property>

Kind regards,
Lini
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
sayitfast
Top achievements
Rank 1
answered on 10 Dec 2008, 07:55 AM
Does that also apply to StripFormattingOnPaste?

Thanks!
0
Lini
Telerik team
answered on 10 Dec 2008, 08:34 AM
Hello,

The StripFormattingOnPaste property has been deprecated and replaced by StripFormattingOptions. Since you have set StripFormattingOptions, you do not need to set StripFormattingOnPaste. I don't think the editor for MOSS will even recognize the property in the config file.

All the best,
Lini
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
WebParts for SharePoint
Asked by
sayitfast
Top achievements
Rank 2
Iron
Answers by
sayitfast
Top achievements
Rank 2
Iron
Lini
Telerik team
sayitfast
Top achievements
Rank 1
Share this question
or