Krang::ElementClass::PoorText - Base class for PoorText element classes
None.
This module inherits from Krang::ElementClass and provides the base class for PoorText elementclasses like Krang::ElementClass::PoorText.
All the normal Krang::ElementClass attributes are available, plus:
bold italic underline strikethrough subscript superscript cut copy paste align_left align_center align_right justify indent outdent 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',
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/src/poortext_core.js for more information)
$pkg->poortext_init()$pkg->get_css_class()$pkg->get_pt_config(has_content => $text)$pkg->get_command_spec(%arg)$pkg->command_spec()Example
return {
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
align_left align_center align_right justify
indent outdent
add_html delete_html add_story_link
redo undo
specialchars help toggle_selectall)
],
};
$pkg->get_shortcut_spec(%arg)$pkg->html_scrubber(html => $html)$pkg->filter_element_data(%arg)$pkg->_do_linked_stories(%arg)$pkg->replace_story_id_with_url(%arg)$pkg->field_separator()