StripFormattingOptions in config file or tools file

5 posts, 0 answers
  1. sayitfast
    sayitfast avatar
    57 posts
    Member since:
    Oct 2006

    Posted 09 Dec 2008 Link to this post

    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
  2. sayitfast
    sayitfast avatar
    57 posts
    Member since:
    Oct 2006

    Posted 09 Dec 2008 Link to this post

    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>

     


  3. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 10 Dec 2008 Link to this post

    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.
  4. sayitfast
    sayitfast avatar
    1 posts
    Member since:
    Jul 2006

    Posted 10 Dec 2008 Link to this post

    Does that also apply to StripFormattingOnPaste?

    Thanks!
  5. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 10 Dec 2008 Link to this post

    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.
Back to Top