public function registerPreviewExtraButtons($name, $toolConfig){
        $newConfig = array('extraButtons' => array());
        $newConfig['extraButtons'][$name] = $toolConfig;
        $this->register(self::AMD, $newConfig);
    }
public function registerPreviewExtraButtons($name, $toolConfig){
        $newConfig = array('extraButtons' => array());
        $newConfig['extraButtons'][$name] = $toolConfig;
        $this->register(self::AMD, $newConfig);
    }
public function registerPreviewExtraButtons ( $ name , $ toolConfig ) { $ newConfig = array ( 'extraButtons' => array ( ) ) ; $ newConfig [ 'extraButtons' ] [ $ name ] = $ toolConfig ; $ this -> register ( self :: AMD , $ newConfig ) ; }
Register an extra button for the preview in the client lib config registry

@param string $name
@param array $toolConfig
Register an extra button for the preview in the client lib config registry