nico_bl1nd wrote:
> Hi,
> 
> does someone know a way to configure tinymce from the generatoryml
> config file.
> I can set one option, like the height, but I would also like to set
> the default theme directly from there, but found no way till now.
> 
> thanks for your help.
> 
> Nicolas Binet
> 
> Ps: my current config file
>       description:
>         name:         Descrition
>         type:         textarea_tag
>         params:       size=60x10 rich=true tinymce_options=height:250

The way I usually do this is like so, so that all my admin modules get 
the same options

app.yml:
all:
   .general:
     tinymce_options: 'size=45x10 rich=true 
tinymce_options=width:550,height:350,convert_newlines_to_brs:true,cleanup_on_startup:true,theme:
 
"advanced",theme_advanced_toolbar_location: "top", 
theme_advanced_toolbar_align:"left",theme_advanced_path_location:"bottom",theme_advanced_blockformats:"h3,h4,h5",theme_advanced_buttons1:
 
"cut,copy,paste,pasteword,pastetext,separator,undo,redo,separator,bold,italic,underline,separator,sub,sup,separator,charmap,removeformat",theme_advanced_buttons2:"fontsizeselect,forecolor,bullist,numlist,outdent,indent",theme_advanced_buttons3:"justifyleft,justifycenter,justifyright,justifyfull",plugins:
 
"paste,table,advlink",paste_create_paragraphs:true,paste_create_linebreaks: 
true,paste_auto_cleanup_on_paste: true, paste_convert_middot_lists: 
true,paste_convert_headers_to_string: true'


then in generator.yml:

   edit:
     fields:
       body: { params: '<?php echo sfConfig::get('app_tinymce_options'); 
?>' }

works like a charm. this issue is making sure it all comes through as a 
string, otherwise the yaml converts it and it doesn't get passed through 
to the generating tag...


you could try
params: 'size=60x10 rich=true tinymce_options=height:250,width:300'
or
params: size=60x10 rich=true tinymce_options='height:250,width:300'


-- 
Nathanael D. Noblet


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to