RadEditor for MOSS 2007

2 posts, 0 answers
  1. Erwin
    Erwin avatar
    4 posts
    Member since:
    May 2008

    Posted 08 May 2008 Link to this post

    Hi,

    I tried to implement the following in MOSS 2007, but it didn't seem to work:

        var documentManagerCommand = RadEditorCommandList["TemplateManager"];
        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>");
                };
            }
        };
    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.

    Thanks.

  2. Erwin
    Erwin avatar
    4 posts
    Member since:
    May 2008

    Posted 08 May 2008 Link to this post

    Ignore my previous post as I had managed to fix the issue.

Back to Top