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

Set the StripFormattingOnPaste to AllExceptNewLines

6 Answers 133 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Kunal Mittal
Top achievements
Rank 1
Kunal Mittal asked on 26 Mar 2010, 01:39 PM
Hi,

I am using the 'RadEditor to edit List Items' feature for sahrepoint.

I have a share point list on which one of the column is a multi line column with full html editor support. Now i have a requirement to set the property :
StripFormattingOnPaste to AllExceptNewLines.

Since i do not have the aspx page or control or anything on this page, can you tell me how exactly can i achieve this.

Regards,
Kunal Mittal

6 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 26 Mar 2010, 03:43 PM
Hello Kunal Mittal,

The StripFormattingOnPaste property can be set from the editor's configuration file. The config file is located at \Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.x.x.x__1f131a624888eeed\RadControls\Editor\.

<property name="StripFormattingOnPaste">AllExceptNewLines</property>

Kind regards,
Rumen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Kunal Mittal
Top achievements
Rank 1
answered on 26 Mar 2010, 04:28 PM
Hi,

Thanks and highly appreciate the quick response.

But that would change the implementation for all the radeditor fields. I just want to make a change in one column in a list

Is there a way to do that.

Regards,
Kunal Mittal
0
Stanimir
Telerik team
answered on 26 Mar 2010, 04:36 PM
Hello Kunal,

Unfortunately you can not make the implementation only for one column in a list. If you are using the latest version of RadEditor for MOSS 5.7.1, what you can do is make the change for all the columns in a specified list. Review the following help article http://www.telerik.com/help/aspnet-ajax/different-configuration-files-for-different-webs.html


All the best,
Stanimir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Kunal Mittal
Top achievements
Rank 1
answered on 29 Mar 2010, 06:05 AM
Hi,

I dont have the path as mentioned in your reply.

I could only locate this path 'C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.4.0.0__1f131a624888eeed'


And it has only one folder : 'Resources'. Inside this folder we had a number of folders and files.Some of them are :

App_Data fodler
App_GlobalResources folder
ToolImages fodler

And then it had some files like 'ConfigFile.xml' , ListConfigFile.xml, web.config and some ashx,ascx files and js files.

i tried changing the 'ConfigFile.xml' and 'ListConfigFile.xml' by adding the property, then did a iisreset and tested the list for Copy and Paste of text. the Formatting was not removed. Please let me know what is missing or what is it that i am doing incorrectly.

Please find the attached image files.

Regards,
Kunal Mittal
0
Kunal Mittal
Top achievements
Rank 1
answered on 29 Mar 2010, 08:06 AM
Hi,

I dont have the path as mentioned in your reply.

I could only locate this path 'C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\5.4.0.0__1f131a624888eeed'


And it has only one folder : 'Resources'. Inside this folder we had a number of folders and files.Some of them are :

App_Data fodler
App_GlobalResources folder
ToolImages fodler

And then it had some files like 'ConfigFile.xml' , ListConfigFile.xml, web.config and some ashx,ascx files and js files.

i tried changing the 'ConfigFile.xml' and 'ListConfigFile.xml' by adding the property, then did a iisreset and tested the list for Copy and Paste of text. the Formatting was not removed. Please let me know what is missing or what is it that i am doing incorrectly.

Please find the attached image files.

Regards,
Kunal Mittal
0
Stanimir
Telerik team
answered on 31 Mar 2010, 01:20 PM
Hi Kunal,

The StripFormattingOnPaste property is obsolete. What you need to do is set the StripFormattingOptions property: http://www.telerik.com/help/aspnet-ajax/telerik.web.ui-telerik.web.ui.radeditor-stripformattingoptions.html

In addition review the following online help articles:
http://www.telerik.com/help/aspnet-ajax/set-properties-via-config-file.html
http://www.telerik.com/help/aspnet-ajax/removing-tools-from-toolbar.html


Kind regards,
Stanimir
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
Kunal Mittal
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Kunal Mittal
Top achievements
Rank 1
Stanimir
Telerik team
Share this question
or