public function registerPreviewExtraButtons($name, $toolConfig){
        $newConfig = array('extraButtons' => array());
        $newConfig['extraButtons'][$name] = $toolConfig;
        $this->register(self::AMD, $newConfig);
    }