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

Forced format stripping on Paste

13 Answers 110 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
sean
Top achievements
Rank 1
sean asked on 31 Dec 2008, 04:47 PM
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.

13 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 02 Jan 2009, 08:51 AM
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.
0
sean
Top achievements
Rank 1
answered on 02 Jan 2009, 03:12 PM
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.
0
Stanimir
Telerik team
answered on 05 Jan 2009, 12:58 PM
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.
0
sean
Top achievements
Rank 1
answered on 05 Jan 2009, 06:21 PM
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.
0
Stanimir
Telerik team
answered on 06 Jan 2009, 09:21 AM
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.
0
Marco
Top achievements
Rank 1
answered on 19 Aug 2009, 03:14 PM
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
0
Stanimir
Telerik team
answered on 21 Aug 2009, 11:10 AM
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.
0
Marco
Top achievements
Rank 1
answered on 21 Aug 2009, 07:46 PM
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

0
Stanimir
Telerik team
answered on 25 Aug 2009, 08:46 AM
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.
0
Marco
Top achievements
Rank 1
answered on 25 Aug 2009, 03:25 PM
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

0
Stanimir
Telerik team
answered on 26 Aug 2009, 07:15 AM
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.
0
Marco
Top achievements
Rank 1
answered on 26 Aug 2009, 10:01 PM
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


0
Stanimir
Telerik team
answered on 27 Aug 2009, 07:10 AM
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.
Tags
WebParts for SharePoint
Asked by
sean
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
sean
Top achievements
Rank 1
Marco
Top achievements
Rank 1
Share this question
or