Hi,
I tried to implement the following in MOSS 2007, but it didn't seem to work:
Thanks.
I tried to implement the following in MOSS 2007, but it didn't seem to work:
var documentManagerCommand = RadEditorCommandList["TemplateManager"];What I am trying to achieve is to display an icon in front of the filename whenever after I upload the file using the document manager.
RadEditorCommandList["DocumentManager"] = function(commandName, editor, oTool)
{
documentManagerCommand (commandName, editor, callBackFn);
function callBackFn(retValue)
{
if (retValue.href)
{
editor.PasteHtml("<IMG src='./images/" + retValue.href.substring(retValue.href.lastIndexOf(".")+1) + ".gif' /><a href='" + retValue.href + "'>" + retValue.href.substring(retValue.href.lastIndexOf("/") + 1) + "</a>");
};
}
};
Thanks.