CodeIgniter Forums
Turn off "Browse Server" in FCKEditor depending on RoleId? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Turn off "Browse Server" in FCKEditor depending on RoleId? (/showthread.php?tid=24115)



Turn off "Browse Server" in FCKEditor depending on RoleId? - El Forum - 10-31-2009

[eluser]dobbler[/eluser]
Hi,

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,

Rob.


Turn off "Browse Server" in FCKEditor depending on RoleId? - El Forum - 01-23-2010

[eluser]InsiteFX[/eluser]
LinkBrowser
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.