Table of Contents
I want to use rich text editor for my admin gen interface, but I got the following error:
You must install TinyMCE to use this helper (see rich_text_js_dir settings).
.
cd /www/my_proj cd web/js/ ln -s /www/tinymce/jscripts/tiny_mce
edit the generator.yml:
content: { params: rich=true tinymce_options=height:200 }
documented on: 2007.08.29
http://www.symfony-project.org/forum/index.php?t=msg&&th=7948&goto=34478#msg_34478
I have now my rich text editor setup. But the problem is the font (size 1 by default) is too small for my application. I would like to change it to size 2 as default. I browsed the TinyMCE API, but could not find anything about how to change the font size. | ||
-- indigodandelion on 02 August 2007 |
Are you talking about the font size within the editor's window?
If yes, then you can set custom css via content_css parameter. Just pass it along other tinymce_options, ie:
content_css: "/css/my_custom_css.css"
In your css file specify the desired font size for body element, ie:
body{font-size:1em}
Example:
<?php echo object_textarea_tag($person, 'getBio', 'rich=true tinymce_options=width:500, height:500, content_css: "/css/tinymce_person.css"') ?>
Fragment of tinymce_person.css:
body {font-size:1em; line-height: 1.5em; font-family: Verdana, Arial, sans-serif; text-align: left}
> Strange, it works for me
guess the syntax use in generator.yml is a bit different.
I finally get it working:
notes: { params: rich=true tinymce_options=height:300,width:500,content_css:"/myproj/css/my_tinymce.css" }
In my_tinymce.css:
body{font-size:15px}
thanks for your help!!!
documented on: 29 August 2007, xpt