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

Toolbar Button

3 Answers 65 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Amith S
Top achievements
Rank 1
Amith S asked on 18 Mar 2010, 05:01 AM
Hi,

I am using a active social module(forums) which has a editor. I am using telerik  to modify the editor.

I need to add another button to the telerik tool bar. But the problem i am facing is that all the examples and demo's out there to add a button is when we know the ID of the editor. Telerik is dynamically changing the ID. How do i add a button?

Thanks,
Amith

3 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 23 Mar 2010, 10:34 AM
Hi Amith,

Could you please provide more details about your scenario?

There are several different ways to add buttons to the toolbar:
  1. Using the TOOLS inner tag of the RadEditor
  2. Using the ToolsFile declaration
  3. Using a theme
  4. From the code-behind
You can find additional detailed information on the subject in the following help article and live demo:
Adding Your Own Buttons
Custom Tools

Please note that if you are adding a custom button you need to implement the command that will be executed when the button is clicked, e.g.:
Telerik.Web.UI.Editor.CommandList["CustomButton"]  = function(commandName, editor, args)
{
  //implement the logic for the custom button here
};

I hope this helps.

Greetings,
Dobromir
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
Amith S
Top achievements
Rank 1
answered on 22 Apr 2010, 03:36 PM
Hi,

I will try and explain more here

I am using a third party forum module
I have installed telerik also


The editor of the forum module is now been modified with telerik, ie the telerik toolbar, and telerik textbox

What i need to do is add a button to the toolbar which will onclick perform some opertaions.

I need to know how i can  add a custom button to the toolbar of the 3rd party editor which is now modified by telerik

Also the 3rd party module is a PA and there is no code behind available to me

Thanks,
Amith
0
Dobromir
Telerik team
answered on 27 Apr 2010, 04:16 PM
Hi Amith,

I am not quite sure I understand your scenario. If by "add a custom button to the toolbar of the 3rd party editor which is now modified by telerik" you mean that your are trying to add a custom button to the RadEditor's toolbar, please check the links from my previous post for code examples. Otherwise, please note that we do not support 3rd party modules and / or integration of RadControls into 3rd party CMS systems other than DotNetNuke and MS SharePoint.

Could you please provide a LiveUrl and / or sample code that is used for the integration of RadEditor?

Regards,
Dobromir
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
Amith S
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Amith S
Top achievements
Rank 1
Share this question
or