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

Custom List - Editor Size

5 Answers 57 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Martin Sebela
Top achievements
Rank 1
Martin Sebela asked on 29 Jan 2010, 01:22 PM
Hi,

I would like to change the default size of RadEditor for some SharePoint custom lists. I've tried to do some hack by SharePoint Designed, but I was not success. Please can you help me and recommend me the best way how to do it?

Thanks,
Martin

5 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 29 Jan 2010, 02:20 PM
Hi Martin,
Could you confirm, which version of RadEditor for MOSS you are using, so I will be able to provide you with correct instructions.

Best wishes,
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.
0
Martin Sebela
Top achievements
Rank 1
answered on 29 Jan 2010, 02:39 PM
Sorry, I didn't notice it. We use 5.6.0 version.

Regards,
Martin
0
Stanimir
Telerik team
answered on 01 Feb 2010, 08:36 AM
Hello Martin Sebela,
Review the following online help article http://www.telerik.com/help/aspnet-ajax/different-configuration-files-for-different-webs.html.

The approach described there is useful in web part and list scenarios. For the WCM scenario, you can already set the configuration files properties through SharePoint Designer - Setting ConfigFile and ToolsFile properties for the WCM field

Best wishes,
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.
0
Martin Sebela
Top achievements
Rank 1
answered on 08 Feb 2010, 04:48 PM
Thank you very much, I will try it. But I don't know if I have access to all configuration files.

It is possible to change editor size via javascript? Can I use for example the following code: http://www.telerik.com/help/aspnet-ajax/addingincreaseanddecreasesizebuttons.html?

How can I get the right objects on EditForm.aspx?

Thanks,
Martin
0
Stanimir
Telerik team
answered on 09 Feb 2010, 08:46 AM
Hi Martin,
Review the following article http://www.telerik.com/help/aspnet-ajax/add_custom_buttons.html.
How can I get the right objects on EditForm.aspx? - Here is one suggestion: set the OnClientLoad property in the ConfigFile.xml or ListConfigFile.xml, which are located in the /Program Files/Common Files/Microsoft Shared/web server extensions/wpresources/RadEditorSharePoint/5.x.x.0__1f131a624888eeed/Resources/ folder.
For example add the following code:
<property name="OnClientLoad">OnClientLoad</property>
Then you can add the following function in the MOSSEditorTools.js file, which is located in the mentioned above folder.
function OnClientLoad(editor, args)
{
    //editor is a reference to the control
}

The following article is helpful in order to get familiar with the Client-Side API of the editor: http://www.telerik.com/help/aspnet-ajax/editor-getting-familiar-with-client-side-api.html


Greetings,
Stanimir
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
WebParts for SharePoint
Asked by
Martin Sebela
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Martin Sebela
Top achievements
Rank 1
Share this question
or