@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | namespace Flynt\TinyMce; |
| 10 | 10 | |
| 11 | 11 | // First Toolbar |
| 12 | -add_filter('mce_buttons', function ($buttons) { |
|
| 12 | +add_filter('mce_buttons', function($buttons) { |
|
| 13 | 13 | $config = getConfig(); |
| 14 | 14 | if ($config && isset($config['toolbars'])) { |
| 15 | 15 | $toolbars = $config['toolbars']; |
@@ -21,11 +21,11 @@ discard block |
||
| 21 | 21 | }); |
| 22 | 22 | |
| 23 | 23 | // Second Toolbar |
| 24 | -add_filter('mce_buttons_2', function ($buttons) { |
|
| 24 | +add_filter('mce_buttons_2', function($buttons) { |
|
| 25 | 25 | return []; |
| 26 | 26 | }); |
| 27 | 27 | |
| 28 | -add_filter('tiny_mce_before_init', function ($init) { |
|
| 28 | +add_filter('tiny_mce_before_init', function($init) { |
|
| 29 | 29 | $config = getConfig(); |
| 30 | 30 | if ($config) { |
| 31 | 31 | if (isset($config['blockformats'])) { |
@@ -40,11 +40,11 @@ discard block |
||
| 40 | 40 | return $init; |
| 41 | 41 | }); |
| 42 | 42 | |
| 43 | -add_filter('acf/fields/wysiwyg/toolbars', function ($toolbars) { |
|
| 43 | +add_filter('acf/fields/wysiwyg/toolbars', function($toolbars) { |
|
| 44 | 44 | // Load Toolbars and parse them into TinyMCE |
| 45 | 45 | $config = getConfig(); |
| 46 | 46 | if ($config && !empty($config['toolbars'])) { |
| 47 | - $toolbars = array_map(function ($toolbar) { |
|
| 47 | + $toolbars = array_map(function($toolbar) { |
|
| 48 | 48 | array_unshift($toolbar, []); |
| 49 | 49 | return $toolbar; |
| 50 | 50 | }, $config['toolbars']); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | { |
| 57 | 57 | if (!empty($blockFormats)) { |
| 58 | 58 | $blockFormatStrings = array_map( |
| 59 | - function ($tag, $label) { |
|
| 59 | + function($tag, $label) { |
|
| 60 | 60 | return "${label}=${tag}"; |
| 61 | 61 | }, |
| 62 | 62 | $blockFormats, |