hey guys ... I know that this is not the place to post this but the BBCode Formatting Bar project (http://drupal.org/node/24875) don't allow to post issues... so I wanted to share my enhancement to it..
I added a new extra button that adds tho [code] [/code] tags on the fly ... also they can be access with e short cut Ctrl+Shift+C
just copy the text below to a file (addcode.patch) and apply the patch in the modules/bbcode_wysiwyg folder with: patch -p0 < addcode.patch
here is the patch:
--- org/bbcode_wysiwyg.module 2007-02-24 14:29:04.000000000 -0600
+++ ./bbcode_wysiwyg.module 2007-02-24 15:19:46.000000000 -0600
@@ -81,6 +81,19 @@
'value' => t('Image'),
)) .'/>',
),
+ 'code' => array(
+ '#type' => 'markup',
+ '#value' => '
+ 'type' => 'button',
+ 'id' => 'bbcode',
+ 'class' => 'bbcode_wysiwyg',
+ 'onclick' => 'codeSelection();setClicked(this.id);',
+ 'value' => t('Code'),
+ 'alt' => 'Ctrl+Shift+C',
+ 'title' => 'Ctrl+Shift+C',
+ )) .'/>',
+ ),
+
);
if ($is_story) {
$form['break'] = array(
--- org/quick_reply.js 2007-02-24 14:31:37.000000000 -0600
+++ ./quick_reply.js 2007-02-24 15:10:11.000000000 -0600
@@ -53,6 +53,24 @@
return sel;