If you have a class derived from HtmlAreaMixin (or a Folder +htmlArea in the acquisition path), and
<dtml-var htmlArea_style> <dtml-var htmlArea_prefix>
in your html <head> section, turning an ordinary textarea into a WYSIWIG editor is done by a simple
<dtml-var "htmlArea_editor('name')">
(name being the name of your textarea). This is what you get:
Log in |
(Of course, the content depends on the content of your textarea) As you can see, the bold button is pushed down, dependent on the current cursor position!