Forced format stripping on Paste

14 posts, 0 answers
  1. sean
    sean avatar
    38 posts
    Member since:
    Jul 2008

    Posted 31 Dec 2008 Link to this post

    In the documentation, you mentioned that users can use StripFormattingOptions to enforce format stripping.  However, I don't see the option in the sharepoint designer.  Is this option available in RAD Editor for MOSS 2007?
    http://www.telerik.com/help/aspnet-ajax/cleaningwordformatting%20.html

    Thanks.

  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 02 Jan 2009 Link to this post

    Hi Sean,

    Please add the following line to the respective ToolsFile.xml, which is located in the C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.3.2.0__1f131a624888eeed\Resources folder (5.3.2.0__1f131a624888eeed depends on the version of the RadEditor for MOSS).
    <tool name="FormatStripper" /> 


    I hope this helps.


    Greetings,
    Stanimir
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  3. sean
    sean avatar
    38 posts
    Member since:
    Jul 2008

    Posted 02 Jan 2009 Link to this post

    I have added this.  But it seems only give me the option of stripping format manually.  Is there any way to automatically strip format on paste?  Thanks.
  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 05 Jan 2009 Link to this post

    Hi Sean,

    There is a RadEditor property called StripFormattingOptions. It gets or sets the value indicating how the editor should clear the HTML formatting when the user pastes data into the content area.  You can find more information about it in our online help http://www.telerik.com/help/aspnet-ajax/telerik.web.ui-telerik.web.ui.radeditor-stripformattingoptions.html .

    All the best,
    Stanimir
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. sean
    sean avatar
    38 posts
    Member since:
    Jul 2008

    Posted 05 Jan 2009 Link to this post

    This method is not available in sharepoint.  I don't see this method listed in the sharepoint designer. I typed it and I got error message.
  6. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 06 Jan 2009 Link to this post

    Hello Sean,

    In order to set the StripFormattingOptions property you need to modify the respective ConfigFile.xml, which is located in Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.3.2.0__1f131a624888eeed\Resources folder (5.3.2.0__1f131a624888eeed depends on the version of the RadEditor for MOSS).

    For example:
    <configuration> 
      ... 
      <property name="StripFormattingOptions">All</property> 
    </configuration> 

    I hope this helps.


    Sincerely yours,
    Stanimir
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Marco
    Marco avatar
    5 posts
    Member since:
    Oct 2007

    Posted 19 Aug 2009 Link to this post

    Hi Stanimir,

    I'm using version Q2 2008 2.0
    I was using the "StripFormattingOptions" that you suggest.
    But when I do in the menu browser:  Edit paste.  it doesn't work.
    When when I use the paste icon in radeditor does that.
    How can I may the strip to wrk when I use the broser menu?

    thank you

    Marco
  8. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 21 Aug 2009 Link to this post

    Hi Marco,

    I am not quite sure what is the behavior that you describe. Could you please provide us with a couple of screen shots where we can see the functionality that you need to achieve? Since this is a forum thread you can upload the images somewhere and give us the URLs to them.

    Thank you.

    Kind regards,
    Stanimir
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  9. Marco
    Marco avatar
    5 posts
    Member since:
    Oct 2007

    Posted 21 Aug 2009 Link to this post

    I have a RadEditor, where I need to prevent to PASTE any MS-WORD coding when someone is doing a PASTE.
    I'm using StripFormattingOnPaste=MSWordRemoveAll. When I paste using the icon menu fromt he control. It does work.
    But when I paste using the browser menu EDIT>Paste
    It does paste with the MS-Word coding. Which I need it to strip out just like the paste icon.

    This is what I get if I paste with icon paste (Icon from the RadEditor):
    test

    This is what I get when I paste with the browser menu:

    Test

    see what I mean??

    Thanks

  10. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 25 Aug 2009 Link to this post

    Hi Marco,

    I tested the issue with the RadEditor 5.2.3, but unfortunately I was not able to reproduce it. For your convenience I attached a small movie with my test. Please let me know if there is something wrong in the way I am testing the issue.


    Kind regards,
    Stanimir
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  11. Marco
    Marco avatar
    5 posts
    Member since:
    Oct 2007

    Posted 25 Aug 2009 Link to this post

    Thank you Stanimir for you time!

    I appreciate your help. Your test is very good.  Just need to include the paste from the Browser's menu.
    See the image attached to see how to do it.
    http://img253.imageshack.us/img253/6932/pastefrommenu.jpg

    thanks

  12. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 26 Aug 2009 Link to this post

    Hello Marco,

    Actually this functionality was included in my test. Every third paste in my video is performed by short key combination ctrl+v (unfortunately you can not see this on the video), which is the same as using the browsers menu. How ever for your convenience I attached a short video with the usage of the browsers menu.

    One more thing. Could you please make sure that you added the <property name="StripFormattingOptions">All</property> setting in both ConfigFile.xml and ListConfigFile.xml.


    Greetings,
    Stanimir
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  13. Marco
    Marco avatar
    5 posts
    Member since:
    Oct 2007

    Posted 26 Aug 2009 Link to this post

    Hi,

    My RadEditor is version 7.3.4.0
    http://imgur.com/wZBaS.jpg

    I don't have that option to  stripformattingoptions = all
    I have this options: http://imgur.com/xVg5F.jpg

    thank you


  14. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 27 Aug 2009 Link to this post

    Hi Marco,

    So you are using 4.x version of RadEditor for MOSS, which is based on the ASP.NET version of RadEditor. The functionality that you require is introduced in the ASP.NET AJAX version of the control. The solution of the problem is upgrading to newer (5.x) version of RadEditor for MOSS.

    Sincerely yours,
    Stanimir
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top