+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Custom button, RadEditor and DRY

Custom button, RadEditor and DRY

2 posts, 0 answered
  1. Endel
    Endel avatar
    2 posts
    Registered:
    16 Aug 2010
    02 Sep 2010
    Link to this post
    Hello there,

    I'm trying to create a custom button to RadEditor.
    The problem I'm having is just with Javascript code. I don't know where to put it.

    Every documentation about that says "it's just put under the editor's declaration" (http://www.telerik.com/help/aspnet-ajax/implementingpagebreakbutton.html)

    But exists a lot of editor declarations, and the only one that I really need this button is on News Module - and I don't found it.
    Is there a way to use the SAME Javascript button code for ALL editors, without repeating code implementation?

    Thanks in advance.
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    03 Sep 2010
    Link to this post
    Hello Endel,

    Thank you for using our services.

    The control templates for the news module which have RadEditor are
    ~/Sitefinity/Admin/ControlTemplates/News/NewsItemNew.ascx
    ~/Sitefinity/Admin/ControlTemplates/News/NewsItemEdit.ascx

    Generally this has to be done for all control templates where you have editor if you want it on all templates.

    Regards,
    Radoslav Georgiev
    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
2 posts, 0 answered