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
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
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 : [
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 =
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
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
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
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
8 matches
Mail list logo