Scenario:
"I want to add more buttons to the standard button bar in the admin area. How do I do this?"
Solution:
The solution is a "core hack", i.e. you will need to edit some of the core Nucleus files inside your /nucleus/ directory.
WARNING: You will need to make this changes again if you make an upgrade of your Nucleus installation.
Original forum thread (thanks, ikeizer, NeoCon Hitman!):
http://forum.nucleuscms.org/viewtopic.php?t=258
Method:
function leftTableThis() { insertAroundCaret(" <table width="auto" cellspacing="0" cellpadding="0" align="left"><tr><td align="center" valign="top" class="small">","</td></tr></table> "); } function rightTable() { insertAroundCaret(" <table width="auto" cellspacing="0" cellpadding="0" align="right"><tr><td align="center" valign="top" class="small">","</td></tr></table> "); }
Save the changes you've made to edit.js.
If your "Javascript Toolbar Style" is "Disabled":
Follow this FAQ on how to enable your item formatting bar
If your "Javascript Toolbar Style" is "Simple (Non-IE)":
Find this code:
case "2": echo '<div class="jsbuttonbar">'; $this->_jsbutton('bold',"boldThis()",''); etc.
If your "Javascript Toolbar Style is "Full Toolbar (IE)":
Find this code:
case "2": echo '<div class="jsbuttonbar">'; $this->_jsbutton('cut','cutThis()',_ADD_CUT_TT . " (Ctrl + X)"); etc.
$this->_jsbutton('lefttable',"leftTable('body')",_ADD_LEFT." "); $this->_jsbutton('righttable',"rightTable('body')",_ADD_RIGHT." ");
![]()
Total votes: 17 - Rating: 8.06