Krang::ElementClass::XinhaEditor - WYSIWYG HTML editor
$class = Krang::ElementClass::XinhaEditor->new(
name => "body",
rows => 20,
cols => 30,
toolbar_config => 'standard'
);
This element provides a WYSIWYG text editor for HTML by integrating with the Xinha JavaScript text editor.
All the normal Krang::ElementClass attributes are available, plus:
The default is 'minimal'.
[
"fontsize", "space",
"bold", "italic", "underline", "separator",
"copy", "cut", "paste", "space", "undo", "redo",
"linebreak",
"insertorderedlist", "outdent", "indent", "separator",
"textindicator", "separator",
"createlink",
]
Note that this a string, *not* a perl data structure!
Xinha is available from http://xinha.python-hosting.com/. The source code and license for the editor are included in the htdocs/xinha/ directory of this Krang distribution.