This commit is contained in:
koenemann 2017-02-02 14:05:52 +01:00
parent 3f6d983319
commit c0ea2d9f6e
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}