NAME

Krang::ElementClass::PoorText - WYSIWYG element


SYNOPSIS

   $class = pkg('ElementClass::PoorText')->new(
        name          => "paragraph",
        type          => 'textarea',
        commands      => 'all_xinha',
        bulk_edit_tag => 'p',
   );


DESCRIPTION

This element provides a WYSIWYG text editor for HTML by integrating with the PoorText WYSIWYG element. It is based on Krang::ElementClass::_PoorTextBase.


INTERFACE

All the normal Krang::ElementClass attributes are available, plus:

Integrating PoorText with Xinha-based bulk editing

As a PoorText field may contain HTML inline-level tags only, the set of values allowed for the option bulk_edit_tag is limited to:

  p, h1, h2, h3, h4, h5, h6, address, pre

(Un)ordered lists and tables are not allowed. For (un)ordered lists see Krang::ElementClass::PoorTextList.


SEE ALSO

The base class Krang::ElementClass::_PoorTextBase and the PoorText source in htdocs/poortext/src/.