The editor needs to be applied on the textareas
mode : "textareas",
But we dont need to apply them on all the textareas. Therefore we say that we want the editor to only apply to textareas with a certain style
editor_selector : "mceEditor",
Dont forget to apply the style on the textarea itself
There are 2 pre installed themes: the simple and the advanced
theme : "advanced",
We need some extra goodies like spell checking (works with PHP spell check, Google web services) and context menus
plugins : "table,spellchecker,searchreplace,contextmenu",
The editor may be resized
theme_advanced_resizing : true,
Therefore we need also the status bar
theme_advanced_statusbar_location : "bottom",
An editor is nothing without a toolbar
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
Now we need to define what needs be shown on the toolbar and thus allowed by the end user. I used this SDN: Weblogs and Formatting! as a base for the buttons. There are different ways to put the buttons. I just indicate the buttons I need, spread over 3 lines
theme_advanced_buttons1 : "bold,italic,formatselect,sub,sup",
theme_advanced_buttons2 : "hr,separator,table,separator,justifycenter,separator,bullist,numlist,separator,link,unlink,anchor,separator,image",
theme_advanced_buttons3 : "undo,redo,separator,cleanup,removeformat,separator,spellchecker"
To conclude the full script:
The result can be seen on my usual place.
Important. This is NOT the real web log editing system, but a private initiative in order to demonstrate things. Therefore, Ive omitted the submit buttons.
But that doesnt imply that this couldnt be implemented to make our S(D)N web log contributors life a lot more easier. It is - as the Grumpy Old Man indicates only 15 minutes of work to implement things.