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\188.8.131.52__1f131a624888eeed\RadControls\Editor folder.
Add the following line.
|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\184.108.40.206__1f131a624888eeed\RadControls\Editor\Skins\Default
\Buttons, where Default
is the name of the current skin of the editor.
All the best,
the Telerik team