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

3 posts, 0 answers
  1. Jean
    Jean avatar
    6 posts
    Member since:
    Oct 2009

    Posted 16 Oct 2009 Link to this post

    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. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 19 Oct 2009 Link to this post

    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.

  3. Jean
    Jean avatar
    6 posts
    Member since:
    Oct 2009

    Posted 19 Oct 2009 Link to this post

    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
Back to Top