public function _tiny_mce_before_init( $mce_init ) {
		$styles = WP_Customizer_Framework\Style::get_registerd_styles();

		if ( ! isset( $mce_init['content_style'] ) ) {
			$mce_init['content_style'] = '';
		}

		foreach ( $styles as $style ) {
			foreach ( $style['selectors'] as $i => $selector ) {
				$selector = trim( $selector );
				if ( preg_match( '|^[\.#>]|', $selector ) ) {
					$style['selectors'][ $i ] = '.mce-content-body.mceContentBody ' . $selector;
				} else {
					$style['selectors'][ $i ] = $selector;
				}
			}

			$selectors  = addslashes( implode( ',', $style['selectors'] ) );
			$properties = addslashes( implode( ';', $style['properties'] ) );

			if ( ! $style['media_query'] ) {
				$mce_init['content_style'] .= "{$selectors} { {$properties} }";
			} else {
				$mce_init['content_style'] .= "{$style['media_query']} { {$selectors} { {$properties} } }";
			}
		}
		return $mce_init;
	}
public function _tiny_mce_before_init( $mce_init ) {
		$styles = WP_Customizer_Framework\Style::get_registerd_styles();

		if ( ! isset( $mce_init['content_style'] ) ) {
			$mce_init['content_style'] = '';
		}

		foreach ( $styles as $style ) {
			foreach ( $style['selectors'] as $i => $selector ) {
				$selector = trim( $selector );
				if ( preg_match( '|^[\.#>]|', $selector ) ) {
					$style['selectors'][ $i ] = '.mce-content-body.mceContentBody ' . $selector;
				} else {
					$style['selectors'][ $i ] = $selector;
				}
			}

			$selectors  = addslashes( implode( ',', $style['selectors'] ) );
			$properties = addslashes( implode( ';', $style['properties'] ) );

			if ( ! $style['media_query'] ) {
				$mce_init['content_style'] .= "{$selectors} { {$properties} }";
			} else {
				$mce_init['content_style'] .= "{$style['media_query']} { {$selectors} { {$properties} } }";
			}
		}
		return $mce_init;
	}
public function _tiny_mce_before_init ( $ mce_init ) { $ styles = WP_Customizer_Framework \ Style :: get_registerd_styles ( ) ; if ( ! isset ( $ mce_init [ 'content_style' ] ) ) { $ mce_init [ 'content_style' ] = '' ; } foreach ( $ styles as $ style ) { foreach ( $ style [ 'selectors' ] as $ i => $ selector ) { $ selector = trim ( $ selector ) ; if ( preg_match ( '|^[\.#>]|' , $ selector ) ) { $ style [ 'selectors' ] [ $ i ] = '.mce-content-body.mceContentBody ' . $ selector ; } else { $ style [ 'selectors' ] [ $ i ] = $ selector ; } } $ selectors = addslashes ( implode ( ',' , $ style [ 'selectors' ] ) ) ; $ properties = addslashes ( implode ( ';' , $ style [ 'properties' ] ) ) ; if ( ! $ style [ 'media_query' ] ) { $ mce_init [ 'content_style' ] .= "{$selectors} { {$properties} }" ; } else { $ mce_init [ 'content_style' ] .= "{$style['media_query']} { {$selectors} { {$properties} } }" ; } } return $ mce_init ; }
Styles for TinyMCE

@param array $mce_init
@return array
Styles for TinyMCE