Kwissle

My real-time quiz battle game Kwissle.com

Crosstips.org

My fun Crossword solver project. Crosstips.org & Krysstips.se

Kung Fu

Fujian White Crane Kung Fu

Photos

Photoalbum, both old and new.

Twitter

Follow me on Twitter

Contact me

My contact details and how to contact me.

 

KungFuPeople.com
Do you train Kung Fu?
Or know someone who does?
Then check out KungFuPeople.com


Mobile version of this page Mobile version of this page


 
Web development

A user-friendly TinyMCE config


8th of October 2009

A user-friendly TinyMCE config When you enable TinyMCE you can either choose theme="simple" or theme="advanced". If you go for the simple you get one lovely little bar of buttons but it's missing the link button which is more important than most other buttons altogether. When you enable "advanced" you get three rows of buttons that makes you dizzy. I mean, should really be editing advanced tables in a WYSIWYG editor or mathematical equations?

Here's a config that I think works great. It's all in one row and it's got the bare minimum in terms of additional plugins (no extra downloads required). It's in Python but translates quite easily into Javascript:

 TINYMCE_DEFAULT_CONFIG = {
    'plugins': "fullscreen,paste,autoresize",
    'theme': "advanced",
    'theme_advanced_buttons1' : "bold,italic,strikethrough,bullist,numlist,"\
                                "separator,undo,redo,separator,link,unlink,image"\
                                ",separator,cleanup,code,removeformat,charmap,"\
                                "fullscreen,paste",
    'theme_advanced_buttons2' : "",
    'theme_advanced_buttons3' : "",
 }



Comment

Richard Knop - 7th March 2010  [«« Reply to this]
Thanks. This was pretty useful, I was trying to do something similar to this but I was forgetting to set theme_advanced_buttons2 and theme_advanced_buttons3 to "" and there were additional buttons showing.
Uwe - 9th March 2010  [«« Reply to this]
Can anyone explain how to use ztinymce to convert the zope ZMI edit forms to something more user friendly? I'm a bit stuck at the moment as to wether this can be achieved at all.

Thanks, Uwe
 
Name:
Email:
hide my email address.

Your email address will be encoded to prevent email-extraction spiders from reading it so you won't get spammed if you decide to show your email address.