This is a migrated thread and some comments may be shown as answers.

Browser specific toolbars/buttons

1 Answer 36 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Stuart
Top achievements
Rank 1
Stuart asked on 06 Dec 2007, 12:20 PM
Is it possible to have different toolbars in different browsers?  The MOSS Link Manager doesn't work properly in Firefox, so we want to remove it, but leave it in IE.

1 Answer, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 06 Dec 2007, 05:01 PM
Hello Stuart,

You can do that with only a small modification to the editor's JS code. Open the file \Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.4.1.0__1f131a624888eeed\RadControls\Editor\Scripts\7_2_1\MOSSEditorTools.js and add the following code for the MOSSLinkManager command:

...  
RadEditorCommandList["MOSSLinkManager"] = function(commandName, editor, oTool)  
{  
    if (!editor.IsIE && !editor.IsSafari)  
    {  
        editor.Fire("LinkManager");  
        return;  
    }  
... 

With this code, if you open the tool in Firefox, the editor will open a normal Link Manager dialog. However, if you open the tool in Internet Explorer or Safari, you will still get the MOSS link asset picker.

Note that if you upgrade to a newer version of the editor at some point, this file will be overwritten so you will need to make the change again.

Best wishes,
Lini
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
WebParts for SharePoint
Asked by
Stuart
Top achievements
Rank 1
Answers by
Lini
Telerik team
Share this question
or