Krang::ElementClass::PoorTextList - a multi field WYSIWYG element
$class = pkg('ElementClass::PoorTextList')->new(
name => "poortext",
type => 'textarea',
commands => 'all',
);
This element combines the WYSIWYG capability of Krang::ElementClass::PoorText with the list management controls of Krang::ElementClass::TextInputList. Where the latter comes with HTML text input fields, this class comes with PoorText fields.
This class is based on Krang::ElementClass::_PoorTextBase.
All the normal Krang::ElementClass attributes are available, plus:
basic => [ qw(bold italic underline
cut copy paste
add_html delete_html add_story_link
redo undo
help toggle_selectall)
],
basic_with_special_chars => [ qw(bold italic underline
cut copy paste
add_html delete_html add_story_link
redo undo
specialchars help toggle_selectall)
],
all => [ qw(bold italic underline
strikethrough subscript superscript
cut copy paste
add_html delete_html add_story_link
redo undo
specialchars help toggle_selectall) ],
Most of these commands should be self-evident. Some, however, are not:
bold => 'ctrl_b',
italic => 'ctrl_i',
underline => 'ctrl_u',
subscript => 'ctrl_d',
superscript => 'ctrl_s',
strikethrough => 'ctrl_t',
toggle_selectall => 'ctrl_a',
add_html => 'ctrl_l',
delete_html => 'ctrl_shift_l',
add_story_link => 'ctrt_shift_s',
redo => 'ctrl_y',
undo => 'ctrl_z',
help => 'ctrl_h',
cut => 'ctrl_x',
copy => 'ctrl_c',
paste => 'ctrl_v',
specialchars => 'ctrl_6',
lsquo => 'ctrl_4',
rsquo => 'ctrl_5',
ldquo => 'ctrl_2',
rdquo => 'ctrl_3',
ndash => 'ctrl_0',
(See htdocs/poortext/src/poortext_core.js for more information)
This elementclass may be used to represent (un)ordered HTML lists.
Legal values for the option bulk_edit_tag are therefore limited to
ul, ol
For
p, h1, h2, h3, h4, h5, h6, address, pre
see Krang::ElementClass::PoorText.
The base class Krang::ElementClass::_PoorTextBase and the PoorText source in htdocs/poortext/src/.