I have installed tinyMCE and it seems to be working fine. Except - I do not have all the icons even with advanced option selected and this is really a problem as the icons missing are quite critical to me - eg. text color, text bg color and text size

I have searcehed the forums and couldn't find anything. Am i doing something wrong?

Comments

mitomac’s picture

Those icons are not included as part of the standard tinymce advanced theme.

From the tinymce FAQ

Why isn't there a color picker and/or a font selector?

There is no need for a color picker or font selector in TinyMCE due to the fact that it would break the layout standards of the site/system implementing it i.e. it would be to loose. Font and colors can be applied by using the CSS classes instead.

The drupal team and theme developers have worked hard to make drupal sites clean and professional looking. The last thing you want is somebody mucking up your organized forum/page with over-sized, blinking, colored fonts that don't match the rest of the site.

What are you trying to do with the colored fonts? Maybe we could point in you the right direction to add some specific css classes that you could use with tinymce.

But if you must have the pretty colors, you can edit the tinymce.module and add the following line after line 272:

$init['theme_advanced_buttons1_add'] = 'fontselect', fontsizeselect', 'forecolor';

This will add the 3 new buttons on the first row of the editor.

Willem van Straaten’s picture

thanx a gizillion mitomac - exactly what i needed

http://www.econsultant.co.za

Willem van Straaten’s picture

I really want to use tinyMCE but i cannot figure out how to do this.

1)This is the advice mitomac gave but it doesn't work
"But if you must have the pretty colors, you can edit the tinymce.module and add the following line after line 272:"

$init['theme_advanced_buttons1_add'] = 'fontselect', fontsizeselect', 'forecolor';

It inserts the buttons and it seems to work fine in edit mode but formatting doesnt stay after subitting and no change to the code when disabling rich text.

2)I have looked at the "Tweaking the TinyMCE Theme" section of INSTALL.txt.
but it just says
In your Drupal theme file create a new function called tinymce_theme:
Which drupal theme does this refer to ???

http://www.econsultant.co.za

matt westgate’s picture

According to your description of the text file, it sounds like you need to download the latest 4.6 version of tinymce. The help text has also improved.

Willem van Straaten’s picture

yes the documentation has changed. New problem I dont use PHPtemplate and therefor dont have a template.php file. How should i go about getting my extra buttons

http://www.econsultant.co.za

Willem van Straaten’s picture

I really love this module. After suffering for weeks to get this text color thing to work for my clients - I've found the problem at last. If you want to customize the theme you HAVE to set the verify HTML setting in tinyMCE to false. and bobs your uncle .
Thanx again for a great module.

PS: I would still really like to see the advanced theme have more / all tinyMCE options, otherwise i have to change this everytime you guys upgrade the module, plus i really think it will be the most downloaded module if you do this. After talking to a lot of people it seems no-one is really happy with the other editors but they are sticking with them because no textcolor etc. available in tinyMCE

http://www.econsultant.co.za

mathew’s picture

i have done this,and its show up.
but after i submit. the fonts and color is gone.

(i use TinyMCE 1.44RC1)

matt westgate’s picture

I haven't tested RC1 with the tinymce module yet. You may want to download this version.

leblank@cyberocity.com’s picture

I recently installed htmleditor on another cms and was going to try to get it to work with Drupal. It is soooo convenient to edit like that. Anyway just a passing thought. I could have looked it up but I also wanted to know if you have seen it tried b4.
---------------
LeBlank

sepeck’s picture

Lookin the modules... already one there.

-sp
---------
Test site...always start with a test site.
Drupal Best Practices Guide

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

mitomac’s picture

Make sure that you have full html enabled. Drupal may be stripping some of the span tags used for font colors etc. Once you figure out what tags tinymce is using you can re-enable the fitlered html with those specific tags added.

matt westgate’s picture

I just updated TinyMCE module to work with the latest release candidate.

JohnG-1’s picture

I just installed tinyMCE on 4.6 having previously used htmlarea on 4.5. thought I'd try it out, so I don't really know what I should expect!

Textarea boxes are completely plain, there are no buttons, menus, etc at all. Below the textarea is a link to disable rich-text or enable rich-text, but toggling doesn't make any difference to the textarea box.

Should I be expecting buttons and stuff?

If so, any idea what's not setup correctly?

please bear in mind that I'm being especially thick this week :)

JohnG

JohnG-1’s picture

sorry,

the file upload hadn't completed properly on installation so there was tons of stuuf missing on my server -

all seems well now
:)

itsme213’s picture

Do I need php-5 for tinyMCE to work?

matt westgate’s picture

Why do you think it does?

itsme213’s picture

Because I've tried twice to set it up (without PHP-5) with no luck :-(

It shows up in the admin/modules panel fine, but I just see standard textareas.

JohnG-1’s picture

especially downloading and installing tinyMCE itself (a separate file) from
http://asitis.org/tinymce_cvs.zip ?

itsme213’s picture

as far as i know, i've followed every step. i tried tinymce_cvs.zip as well as tinymce_1_44.zip. no luck, and no error message of any kind either.

sigh!