From c0ea2d9f6e8820703659503d4adbd9da96dec3f8 Mon Sep 17 00:00:00 2001 From: koenemann Date: Thu, 2 Feb 2017 14:05:52 +0100 Subject: [PATCH] See https://github.com/holger1411/understrap/issues/240 - Thx@arpage --- inc/editor.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inc/editor.php b/inc/editor.php index 8e3d59e..b9a8e52 100644 --- a/inc/editor.php +++ b/inc/editor.php @@ -54,6 +54,12 @@ function understrap_tiny_mce_before_init( $settings ) { 'inline' => 'cite' ) ); + + if ( isset( $settings['style_formats'] ) ) { + $orig_style_formats = json_decode($settings['style_formats'],true); + $style_formats = array_merge($orig_style_formats,$style_formats); + } + $settings['style_formats'] = json_encode( $style_formats ); return $settings; }