See https://github.com/holger1411/understrap/issues/240 - Thx@arpage
This commit is contained in:
parent
3f6d983319
commit
c0ea2d9f6e
|
@ -54,6 +54,12 @@ function understrap_tiny_mce_before_init( $settings ) {
|
||||||
'inline' => 'cite'
|
'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 );
|
$settings['style_formats'] = json_encode( $style_formats );
|
||||||
return $settings;
|
return $settings;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue