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

Custom button in Rad Editor working well in IE 7.0 but not in Fire Fox

2 Answers 35 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Nouman
Top achievements
Rank 1
Nouman asked on 27 Feb 2009, 07:32 AM
In Moss 2007, i created a custom button in Tool bar of Rad Editor control. On clicking the button it will open the Image Picker.
It works fine in IE 7.0 but in firefox browser that custom button is not even visible.

Am I missing any line of code to make it visible & working in Firefox ??

With Best Regards
Nouman

2 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 27 Feb 2009, 09:40 AM
Hello Nouman,

In order to create your button in the RadEditor for MOSS, you need to follow this example.
1. Modify the respective ToolsFile.xml located in Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.5.4.0__1f131a624888eeed\RadControls\Editor folder.
Add the following line.
<tool name="Custom1"/> 

2. Implement the javascript handler for the tool. Add the following code tho the MOSSEditorTools.js file located in the Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.5.4.0__1f131a624888eeed\RadControls\Editor\Scripts\7_3_4 folder.
RadEditorCommandList["Custom1"] = function(commandName, editor, oTool) 
{       
     // Execute your code here, provide it with any arguments that you need, etc.    
}; 

Remember to clear the browser's cache.

3. To improve the appearance of the button, you should provide .gif file for it. Add a Cusotm1.gif file in the Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.5.4.0__1f131a624888eeed\RadControls\Editor\Skins\Default\Buttons, where Default is the name of the current skin of the editor.

If you follow this example and experience the same problem again. Please provide us with some additional information. For example: Is there something specific in the way you are adding your custom button? Can you see a javascript error on the page (for FireFox browser you can install FireBug plugin)? Any additional information and a couple of screen shots will be helpful as well.

Thank you.


All the best,
Stanimir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Nouman
Top achievements
Rank 1
answered on 27 Feb 2009, 10:25 AM
Hello Stanimir,
I followed the same procedure as above mentioned.
I installed the latest version of FireFox, now its working well ...

Thanks...
Nouman
Tags
WebParts for SharePoint
Asked by
Nouman
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Nouman
Top achievements
Rank 1
Share this question
or