Completed
Push — Features/TinyMce/Improvements ( 2f09eb...89ccee )
by
unknown
33:31 queued 29:55
created
Features/TinyMce/functions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,17 +7,17 @@  discard block
 block discarded – undo
7 7
 // Clean Up TinyMCE Buttons
8 8
 
9 9
 // First Bar
10
-add_filter('mce_buttons', function ($buttons) {
10
+add_filter('mce_buttons', function($buttons) {
11 11
     $toolbarsFromFile = getToolbarsFromJson();
12 12
     return $toolbarsFromFile['Default'];
13 13
 });
14 14
 
15 15
 // Second Bar
16
-add_filter('mce_buttons_2', function ($buttons) {
16
+add_filter('mce_buttons_2', function($buttons) {
17 17
     return [];
18 18
 });
19 19
 
20
-add_filter('tiny_mce_before_init', function ($init) {
20
+add_filter('tiny_mce_before_init', function($init) {
21 21
     // Add block format elements you want to show in dropdown
22 22
     $init['block_formats'] = 'Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6';
23 23
     
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     return $init;
38 38
 });
39 39
 
40
-add_filter('acf/fields/wysiwyg/toolbars', function ($toolbars) {
40
+add_filter('acf/fields/wysiwyg/toolbars', function($toolbars) {
41 41
     // Load Toolbars and parse them into TinyMCE
42 42
     $toolbarsFromFile = getToolbarsFromJson();
43 43
     if ($toolbarsFromFile) {
Please login to merge, or discard this patch.