Great module! I was reading through the readme and .module files. Before I start hacking the code, I wanted to check on a few things.

If I want to remove the teaser and code tags, do I just have to remove:

    'ed_code' => array(
      'name' => 'code',
      'prefix' => '<code>',
      'suffix' => '

',
'accesskey' => 'c',
'icon' => $path .'ed_code.png',
),

and

    'ed_break' => array(
      'name' => 'teaser break',
      'prefix' =>'<!--break-->',
      'accesskey' => 't',
      'close' => FALSE,
      'icon' => $path .'ed_break.png',
    ),

?? Take them out and they're gone?

Then, if want to add h2, for example, would I just make:

'ed_break' => array(
'name' => 'header',
'prefix' =>'

',
'accesskey' => '

',
'close' => FALSE,
'icon' => $path .'ed_header.png',
),

and make the relevant icon. Is it that simple? only changes needed in the .module file? the other two I was really interested in were:

- lists
- img

I imagine the list tags would be tough, as you need both

    and
  • tags. Any pointers you could give me would be appreciated. Thanks.

Comments

tcblack’s picture

Adding and removing the tags is that easy. However any upgrades to the module will nuke your changes if they are just edits to the original file. It's best to add tags in a submodule.
In order to remove I think it's possible to just alter a tag and leave off the information

 function foobar_quicktags_alter($items) {
  $path = drupal_get_path('module','quicktags') .'/';
  $items['ed_break'] = array(
      'name' => 'teaser break',
      'prefix' => '',
      'close' => FALSE,
      'icon' => $path .'',
    );
  return $items;
}

Bèr might want to comment on the proper way to remove a tag from the main module.

I am currently working on a contrib module (quicktagsplus) which will be available as soon as I gain CVS access and Bèr Kessels adds access for me onto this module.

tcblack’s picture

Status: Active » Fixed

I'm moving this to fixed as I believe I've answered esllou's question.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.