Showing diffent toolbars in ckeditor based on roles

2012-10-10 Thread Torrent Girl
Has anyone figured out how to show a different toolbar in ckeditor based on a variable? I want to do this: cfif session.role = Admin textarea class=ckeditor toolbar=Full name=englishText#englishText#/textarea cfelse textarea class=ckeditor toolbar=Basic name=englishText#englishText#/textarea

Re: Showing diffent toolbars in ckeditor based on roles

2012-10-10 Thread Russ Michaels
I can;t see any reason why that wouldn't work. do both those toolbars display normally without your if/else ? On Wed, Oct 10, 2012 at 3:02 PM, Torrent Girl moniqueb...@gmail.com wrote: Has anyone figured out how to show a different toolbar in ckeditor based on a variable? I want to do

Re: Showing diffent toolbars in ckeditor based on roles

2012-10-10 Thread Torrent Girl
I can;t see any reason why that wouldn't work. do both those toolbars display normally without your if/else ? It won't :( Here is what is in my config.js file config.toolbar_Full = [ { name: 'document', items : [

Re: Showing diffent toolbars in ckeditor based on roles

2012-10-10 Thread Torrent Girl
I can;t see any reason why that wouldn't work. do both those toolbars display normally without your if/else ? This may be a stupid question but can I add coldfusion code within the config.js file like so? cfif session.user.roleID EQ 1 config.toolbar = Full; cfelse config.toolbar =

Re: Showing diffent toolbars in ckeditor based on roles

2012-10-10 Thread Russ Michaels
no because it is a JS file so will never be processed by coldfusion. however if you make it a CFM file instead then it will be, but you will need to make sure there are no HASHES in the file or they will throw errors. You will also need to change anything that includes that to use the new

Re: Showing diffent toolbars in ckeditor based on roles

2012-10-10 Thread Torrent Girl
no because it is a JS file so will never be processed by coldfusion. however if you make it a CFM file instead then it will be, but you will need to make sure there are no HASHES in the file or they will throw errors. You will also need to change anything that includes that to use the new

Re: Showing diffent toolbars in ckeditor based on roles

2012-10-10 Thread Torrent Girl
no because it is a JS file so will never be processed by coldfusion. however if you make it a CFM file instead then it will be, but you will need to make sure there are no HASHES in the file or they will throw errors. You will also need to change anything that includes that to use the

Re: Showing diffent toolbars in ckeditor based on roles

2012-10-10 Thread Torrent Girl
I found the solution!!! YAY!! http://nils.realeyesmedia.com/?p=126 You have to put the script to replace the toolbar after the text area (???) Here is my final: textarea id=englishText class=ckeditor name=englishText#englishText#/textarea cfif session.user.roleID EQ 3 script