Krang::ElementClass::PoorText - WYSIWYG element
$class = pkg('ElementClass::PoorText')->new(
name => "poortext",
type => 'textarea',
commands => 'all',
);
This element provides a WYSIWYG text editor for HTML by integrating with the PoorText WYSIWYG element
All the normal Krang::ElementClass attributes are available, plus:
basic => [ qw(bold italic underline
cut copy paste
add_html delete_html
redo undo
help toggle_selectall)
],
basic_with_special_chars => [ qw(bold italic underline
cut copy paste
add_html delete_html
redo undo
specialchars help toggle_selectall)
],
all => [ qw(bold italic underline
strikethrough subscript superscript
cut copy paste
align_left align_center align_right justify
indent outdent
add_html delete_html
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',
align_left => 'ctrl_q',
align_center => 'ctrl_e',
align_right => 'ctrl_r',
justify => 'ctrl_w',
indent => 'tab',
outdent => 'shift_tab',
lsquo => 'ctrl_4',
rsquo => 'ctrl_5',
ldquo => 'ctrl_2',
rdquo => 'ctrl_3',
ndash => 'ctrl_0',
(See htdocs/poortext/poortext_core.js for more information)
The PoorText source in htdocs/poortext/.