After many hours of searching I found the answer. My example was a little differnt in that my skin was not RTL I just wanted the option of having RTL in RADEditor. So here it is;
1. Providers\HtmlEditorProviders\Telerik\Config\ToolsDefault.xml add the following lines
<tool name="LTR" text="LTR" showtext="true" showicon="false"/>
<tool name="RTL" text="RTL" showtext="true" showicon="false"/>
2. Providers\HtmlEditorProviders\Telerik\js\CustomFunctions.js add the following after the existing text
function SetDirectionOfSelection(editor, strDirection)
{
var rngSelection = editor.getSelection();
var strTagNames;
strTagNames = "|H1|H2|H3|H4|H5|H6|P|PRE|TD|DIV|BLOCKQUOTE|DT|DD|TABLE|HR|IMG|TR|UL|OL|";
if (rngSelection.getParentElement())
{
var elemSelectionParent = rngSelection.getParentElement();
while ((elemSelectionParent != null) && (strTagNames.indexOf("|" + elemSelectionParent.tagName + "|") == -1))
{
elemSelectionParent = elemSelectionParent.parentNode;
}
if (elemSelectionParent)
{
SetDirectionOnElement(elemSelectionParent, strDirection);
}
else
{
var oDoc = editor.get_document();
var para = createPara(oDoc, strDirection, editor.getSelectionHtml());
var range = editor.getSelection().getRange();
//handle possitioning of the cursor inside the new paragraph
if ($telerik.isIE)
{
range.moveToElementText(para);
range.select();
}
else
{
range = document.createRange();
range.selectNodeContents(para);
editor.getSelection().selectRange(range);
}
editor.getSelection().collapse();
SetDirectionOfSelection(editor, strDirection);
}
}
}
function SetDirectionOnElement(element, strDirection)
{
if ("ltr" == strDirection)
{
element.dir = "ltr";
element.align = "left";
}
else if ("rtl" == strDirection)
{
element.dir = "rtl";
element.align = "right";
}
}
function createPara(doc, dir, content)
{
var par = doc.createElement("P");
SetDirectionOnElement(par, dir)
par.innerHTML = content;
doc.body.appendChild(par);
return par;
}
Telerik.Web.UI.Editor.CommandList["LTR"] = function (commandName, editor, args)
{
SetDirectionOfSelection(editor, "ltr");
}
Telerik.Web.UI.Editor.CommandList["RTL"] = function (commandName, editor, args)
{
SetDirectionOfSelection(editor, "rtl");
}
That's it your ready to go