Symfony Plugins


Table of Contents

install TinyMCE 
Goal 
Solution Synopsis 
Symptom 
Solution 
how to control default font size in rich text editing 
how to control default font size in rich text editing 
list of installed plugins 

install TinyMCE 

Goal 

Install TinyMCE

Solution Synopsis 

  1. download it from the tinymce site: http://sourceforge.net/projects/tinymce/
  2. put it in web/js/tiny_mce

Symptom 

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).

Solution 

  1. expand tinymce_2_1_2.tgz in /www as /www/tinymce

.

cd /www/my_proj
cd web/js/
ln -s /www/tinymce/jscripts/tiny_mce
  1. edit the generator.yml:

    content: { params: rich=true tinymce_options=height:200 }
  2. refresh broswer. That's it. You'll get rich text editor in admin gen interface.

documented on: 2007.08.29

how to control default font size in rich text editing 

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}

how to control default font size in rich text editing 

> 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