[pmwiki-users] howto disable some of the standard gui buttons

Patrick R. Michaud pmichaud at pobox.com
Thu Sep 29 08:01:28 CDT 2005


On Thu, Sep 29, 2005 at 01:42:10PM +0200, noskule wrote:
> hi
> I try to disable some of the standard guibuttons. Simply  write
> 
> $GUIButtons = '';
> 
> in the config file and add other ones dont work, the standard buttons
> are still there. I try to avoid to change the code in guiedit.php. Could
> anyone  please give my  a hint how to do it?

To start with a completely empty set of guibuttons, you can use:

    include_once('scripts/guiedit.php');
    $GUIButtons = array();

If you just want to disable specific buttons, then it can be done with
statements like:

    $GUIButtons['em'] = 0;            
    $GUIButtons['center'] = 0;        
    $GUIButtons['sup'] = 0;
    $GUIButtons['h2'] = 0;

Pm




More information about the pmwiki-users mailing list