I think I have to learn Russian
Sam, RTEcustomJS.js is in ~/js not in ~editor/
i found ~/editor/RegToolsFile.xml
I added this tool
<tool name="Insert a Youtube movie" shortcut="CTRL+Y" iconurl="~/editor/icon_youtube.gif"/>
I uploaded this icon
I did find RTEcustomjs.js in ~js/
So I updated RTEcustomJS.js
Directly under
RadEditorCommandList["Show Smilies"] =
function(commandName, editor, oTool) {
restorePoint = editor.CreateRestorePoint();
editor.ShowDialog(
RTEDialogLocation + "customsmiley.aspx"
, arg
, 470
, 450
, InsertSmiley
, null
, "Smilies");
return false;
}; I inserted this
RadEditorCommandList["Insert a Youtube movie"] =
function(commandName, editor, oTool) {
restorePoint = editor.CreateRestorePoint();
EditorPasteHtml("[tube]" + editor.GetSelectionHtml() + "[/tube]"); }; and.. taddaaaa.. the youtube button
<message edited by ErEf on Tue. Jan 26, '10 12:43 AM>