library/Admin/UI/Editor.php
public function styleFormat($settings)
    {
        // Set color scheme class on mce body
        $color = get_field('color_scheme', 'option');

        if ($color) {
            $settings['body_class'] .= ' theme-' . $color;
        }

        // Get style formats
        $styleFormats = self::getEnabledStyleFormats();

        if (empty($styleFormats)) {
            return $settings;
        }

        $settings['style_formats'] = json_encode($styleFormats);
        return $settings;
    }
public function styleFormat($settings)
    {
        // Set color scheme class on mce body
        $color = get_field('color_scheme', 'option');

        if ($color) {
            $settings['body_class'] .= ' theme-' . $color;
        }

        // Get style formats
        $styleFormats = self::getEnabledStyleFormats();

        if (empty($styleFormats)) {
            return $settings;
        }

        $settings['style_formats'] = json_encode($styleFormats);
        return $settings;
    }
public function styleFormat ( $ settings ) { // Set color scheme class on mce body $ color = get_field ( 'color_scheme' , 'option' ) ; if ( $ color ) { $ settings [ 'body_class' ] .= ' theme-' . $ color ; } // Get style formats $ styleFormats = self :: getEnabledStyleFormats ( ) ; if ( empty ( $ styleFormats ) ) { return $ settings ; } $ settings [ 'style_formats' ] = json_encode ( $ styleFormats ) ; return $ settings ; }
Add style format options
@param  array $settings  Options array
@return array            Modified options array
Add style format options