public function addButtons($buttons)
    {
        // Add a first separator
        array_push($buttons, '|');

        // Iterate on configs
        foreach ($this->configs as $key => $file) {
            if (empty($file) && 'media' !== $key) {
                continue;
            }

            // Update buttons
            array_push($buttons, $key);
        }

        return $buttons;
    }
public function addButtons($buttons)
    {
        // Add a first separator
        array_push($buttons, '|');

        // Iterate on configs
        foreach ($this->configs as $key => $file) {
            if (empty($file) && 'media' !== $key) {
                continue;
            }

            // Update buttons
            array_push($buttons, $key);
        }

        return $buttons;
    }
public function addButtons ( $ buttons ) { // Add a first separator array_push ( $ buttons , '|' ) ; // Iterate on configs foreach ( $ this -> configs as $ key => $ file ) { if ( empty ( $ file ) && 'media' !== $ key ) { continue ; } // Update buttons array_push ( $ buttons , $ key ) ; } return $ buttons ; }
Add buttons to tinyMCE.

@param array $buttons
Add buttons to tinyMCE .