@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | // Clean Up TinyMCE Buttons |
6 | 6 | |
7 | 7 | // First Bar |
8 | -add_filter('mce_buttons', function ($buttons) { |
|
8 | +add_filter('mce_buttons', function($buttons) { |
|
9 | 9 | return [ |
10 | 10 | 'formatselect', |
11 | 11 | // 'styleselect', |
@@ -46,11 +46,11 @@ discard block |
||
46 | 46 | }); |
47 | 47 | |
48 | 48 | // Second Bar |
49 | -add_filter('mce_buttons_2', function ($buttons) { |
|
49 | +add_filter('mce_buttons_2', function($buttons) { |
|
50 | 50 | return []; |
51 | 51 | }); |
52 | 52 | |
53 | -add_filter('tiny_mce_before_init', function ($init) { |
|
53 | +add_filter('tiny_mce_before_init', function($init) { |
|
54 | 54 | // Add block format elements you want to show in dropdown |
55 | 55 | $init['block_formats'] = 'Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6'; |
56 | 56 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | return $init; |
64 | 64 | }); |
65 | 65 | |
66 | -add_filter('acf/fields/wysiwyg/toolbars', function ($toolbars) { |
|
66 | +add_filter('acf/fields/wysiwyg/toolbars', function($toolbars) { |
|
67 | 67 | // Load Toolbars and parse them into TinyMCE |
68 | 68 | $filePath = get_template_directory() . '/Features/TinyMce/toolbars.json'; |
69 | 69 | if (file_exists($filePath)) { |