Friday, December 02, 2005

Adding a button to toolbar in Nucleus.

Edit the file PAGEFACTORY.php

Add
$this->_jsbutton('blockquote',"blockquoteThis()",_ADD_BLOCKQUOTE_TT ." (Ctrl + Shift + Q)");

And

$this->_jsbutton('blockquote',"blockquoteThis()",'');


Upload image button-blockquote.gif to admin/images directory

Edit javascript/edit.js

function blockquoteThis() { insertAroundCaret('
','
'); }
If the toolbar is enabled, the button should start working now.
  post to Del.icio.us

0 Comments:

Post a Comment

<< Home

eXTReMe Tracker