*** markitup.inc.orig 2012-01-09 14:53:34.000000000 -0600
--- markitup.inc 2012-01-09 15:24:02.000000000 -0600
***************
*** 112,117 ****
--- 111,155 ----
// Add configured buttons or all available.
$default_buttons = array(
+ 'h1' => array(
+ 'name' => t('Heading 1'),
+ 'className' => 'markitup-h1',
+ 'key' => '1',
+ 'openWith' => '
',
+ 'closeWith' => '
',
+ 'placeHolder' => 'Your title here...',
+ ),
+ 'h2' => array(
+ 'name' => t('Heading 2'),
+ 'className' => 'markitup-h2',
+ 'key' => '2',
+ 'openWith' => '',
+ 'closeWith' => '
',
+ 'placeHolder' => 'Your title here...',
+ ),
+ 'h3' => array(
+ 'name' => t('Heading 3'),
+ 'className' => 'markitup-h3',
+ 'key' => '3',
+ 'openWith' => '',
+ 'closeWith' => '
',
+ 'placeHolder' => 'Your title here...',
+ ),
+ 'h4' => array(
+ 'name' => t('Heading 4'),
+ 'className' => 'markitup-h4',
+ 'key' => '4',
+ 'openWith' => '',
+ 'closeWith' => '
',
+ 'placeHolder' => 'Your title here...',
+ ),
+ 'paragraph' => array(
+ 'name' => t('Paragraph'),
+ 'className' => 'markitup-paragraph',
+ 'key' => 'p',
+ 'openWith' => '',
+ 'closeWith' => '
',
+ ),
'bold' => array(
'name' => t('Bold'),
'className' => 'markitup-bold',
***************
*** 147,152 ****
--- 185,208 ----
'closeWith' => '',
'placeHolder' => 'Your text to link...',
),
+ 'list-bullet' => array(
+ 'name' => t('Unordered List'),
+ 'className' => 'markitup-list-bullet',
+ 'openWith' => "',
+ ),
+ 'list-numeric' => array(
+ 'name' => t('Ordered List'),
+ 'className' => 'markitup-list-numeric',
+ 'openWith' => "\n",
+ 'closeWith' => '
',
+ ),
+ 'list-item' => array(
+ 'name' => t('List Item'),
+ 'className' => 'markitup-list-item',
+ 'openWith' => '',
+ 'closeWith' => '',
+ ),
// @todo
// 'cleanup' => array('name' => t('Clean-up'), 'className' => 'markitup-cleanup', 'replaceWith' => 'function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") }'),
'preview' => array(
***************
*** 176,185 ****
--- 232,249 ----
return array(
'default' => array(
'buttons' => array(
+ 'h1' => t('Heading 1'),
+ 'h2' => t('Heading 2'),
+ 'h3' => t('Heading 3'),
+ 'h4' => t('Heading 4'),
+ 'paragraph' => t('Paragraph'),
'bold' => t('Bold'), 'italic' => t('Italic'),
'stroke' => t('Strike-through'),
'link' => t('Link'),
'image' => t('Image'),
+ 'list-bullet' => t('Unordered List'),
+ 'list-numeric' => t('Ordered List'),
+ 'list-item' => t('List Item'),
// 'cleanup' => t('Clean-up'),
'preview' => t('Preview'),
),