Welcome Guest, Not a member yet? Register   Sign In
Turn off "Browse Server" in FCKEditor depending on RoleId?


I have a site with a cms where FCKEditor (with CKFinder) is used only on the backend except one instance where it is available to the public. The problem is the "Browse Server" button is available in the "Link" dialogue box which is, obviously, not ideal. (also the "Upload" tab is available)

Is there any way to prevent it from being displayed depending on either the page name or the RoleId in the session?

I've found where the code is being taken from:

plugins/fckeditor/editor/dialog/fck_link.html line 63

but because it's an html page I can't put a condition around it. Would it be as simple as finding where fck_link.html is included from and changing it to a php page with the condition around it? (I just tried that and it didn't work!)

Perhaps another instance of fckeditor without ckfinder? Not sure how to go about that.

If anyone has come across this problem or has any pearls of wisdom it would be greatly appreciated.

Many thanks,


This option enables/disables the FCKeditor built-in resource browser used in the "Link" window. The browser gives easy access to the server content. By default this option is set to 'true':
FCKConfig.LinkBrowser = true ;

Change to false should disable it.

This in the the fckconfig.js file

or set it through your editor configuration.

Theme © iAndrew 2016 - Forum software by © MyBB