Custom style_formats is not working when Jetpack is activated
-
I have a custom style formats on my TMCEA and it was working perfect. After activating Jetpack on my website my styles have gone and it’s only showing 3 styles that seems to be from Jetpack form.
function my_tiny_mce( $init ) { // Create array of new styles $style_formats = array( array( 'title' => 'Font Light', 'inline' => 'span', 'classes' => 'light', ), array( 'title' => 'Font Medium', 'inline' => 'span', 'classes' => 'medium', ), array( 'title' => 'Cor Lilas', 'inline' => 'span', 'classes' => 'lilas', ), array( 'title' => 'Citacao esquerda', 'inline' => 'blockquote', 'classes' => 'citacao_esquerda', ), array( 'title' => 'Citacao direita', 'inline' => 'blockquote', 'classes' => 'citacao_direita', ), array( 'title' => 'Citacao central', 'inline' => 'blockquote', 'classes' => 'citacao_central', ), array( 'title' => 'Letra Grande', 'inline' => 'span', 'classes' => 'letragrande', ), ); $init[ 'style_formats' ] = json_encode( $style_formats ); return $init; } add_filter( 'tiny_mce_before_init', 'my_tiny_mce' );Any thoughts on this bug?
The topic ‘Custom style_formats is not working when Jetpack is activated’ is closed to new replies.