@@ -8,17 +8,17 @@ discard block |
||
| 8 | 8 | // Clean Up TinyMCE Buttons |
| 9 | 9 | |
| 10 | 10 | // First Bar |
| 11 | -add_filter('mce_buttons', function ($buttons) { |
|
| 11 | +add_filter('mce_buttons', function($buttons) { |
|
| 12 | 12 | $toolbarsFromFile = getToolbarsFromJson(); |
| 13 | 13 | return $toolbarsFromFile['Default'][0]; |
| 14 | 14 | }); |
| 15 | 15 | |
| 16 | 16 | // Second Bar |
| 17 | -add_filter('mce_buttons_2', function ($buttons) { |
|
| 17 | +add_filter('mce_buttons_2', function($buttons) { |
|
| 18 | 18 | return []; |
| 19 | 19 | }); |
| 20 | 20 | |
| 21 | -add_filter('tiny_mce_before_init', function ($init) { |
|
| 21 | +add_filter('tiny_mce_before_init', function($init) { |
|
| 22 | 22 | $options = Feature::getOptions('flynt-tiny-mce'); |
| 23 | 23 | |
| 24 | 24 | $init['block_formats'] = getBlockFormats($options); |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | return $init; |
| 28 | 28 | }); |
| 29 | 29 | |
| 30 | -add_filter('acf/fields/wysiwyg/toolbars', function ($toolbars) { |
|
| 30 | +add_filter('acf/fields/wysiwyg/toolbars', function($toolbars) { |
|
| 31 | 31 | // Load Toolbars and parse them into TinyMCE |
| 32 | 32 | $toolbarsFromFile = getToolbarsFromJson(); |
| 33 | 33 | if ($toolbarsFromFile) { |