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:

Zope.org - img

  You are not logged in Log in Join
You are here: Home » Members » Tobias Herp » htmlArea for Zope » htmlArea for Zope demo » The perfectly normal, every-day editor » img

Log in
Name

Password

 

img

Size: 6 K

(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!