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

Can we avoid clicking on "OK" to save content in a RADEditor WEBPART?

2 Answers 32 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Jean
Top achievements
Rank 1
Jean asked on 16 Oct 2009, 11:52 AM
Hi,

Right now we have to click on the OK button of the Webpart property dialog to save the content of a "RAD Editor webpart".

Is it possible to add a save button in the toolbar to save the content ? So user would click on save within the same toolbar instead of having to switch to the webpart property pane.

I've attached a picture which illustrate what I want. If this is possible, could you provide some guidelines on how to achieve this?

thank you,
Jean

2 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 19 Oct 2009, 07:34 AM
Hi Jean,

In the following help article you can read the instructions for how to add custom buttons to the RadEditor for MOSS http://www.telerik.com/help/aspnet-ajax/add_custom_buttons.html.

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
Jean
Top achievements
Rank 1
answered on 19 Oct 2009, 08:18 AM
Hi all,

I've written a little javascript to achieve this. For those who are interested, here is the code snippet:

Insert the following in the command method of the button:

 ok_button = document.getElementById("ctl00_MSOTlPn_EditorZone_MSOTlPn_OKBtn");
 ok_button.click();

Kind regards,
Jean
Tags
WebParts for SharePoint
Asked by
Jean
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Jean
Top achievements
Rank 1
Share this question
or