Hi ,
Is it possible for the FCK editor to have the ability to display buttons on the toolbar based on the person being an admin?
for example, can an user have the Table button displayed , but not anyone else.
Kindly let me know if this is possible.
Thanks,
Sucheeth
Is it possible for the FCK editor to have the ability to display buttons on the toolbar based on the person being an admin?
for example, can an user have the Table button displayed , but not anyone else.
Kindly let me know if this is possible.
Thanks,
Sucheeth
Re: Loading of FCK editor buttons based on user
<script type="text/javascript">
window.onload = function()
{
var sBasePath ="fckeditor/" ;
var oFCKeditor = new FCKeditor( 'news_item' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.ToolbarSet = '.$row['usernaename'].' ; ***/here's where you call up the username data/***
oFCKeditor.ReplaceTextarea() ;
}
</script>
Then add ToolBarSets for each user in the fckconfig.js or a customConfig.js:
FCKConfig.ToolbarSets["theusername1"] = [
['table',]
FCKConfig.ToolbarSets["theusername2"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']