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\220.127.116.11__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\18.104.22.168__1f131a624888eeed\RadControls\Editor\Skins\Default
\Buttons, where Default
is the name of the current skin of the editor.
All the best,
the Telerik team