Completed
Push — Features/TinyMce/Improvements ( 2ab5e6...4c6241 )
by
unknown
05:32 queued 02:40
created
Components/BlockWysiwyg/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@
 block discarded – undo
4 4
 
5 5
 use Flynt\Features\Components\Component;
6 6
 
7
-add_action('wp_enqueue_scripts', function () {
7
+add_action('wp_enqueue_scripts', function() {
8 8
     Component::enqueueAssets('BlockWysiwyg', []);
9 9
 });
10 10
 
11
-add_filter('Flynt/addComponentData?name=BlockWysiwyg', function ($data) {
11
+add_filter('Flynt/addComponentData?name=BlockWysiwyg', function($data) {
12 12
 
13 13
     return $data;
14 14
 });
Please login to merge, or discard this patch.
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'][0];
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
     $options = Feature::getOptions('flynt-tiny-mce');
22 22
 
23 23
     if (isset($options[0]) && isset($options[0]['blockformatsConfigPath'])) {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     return $init;
56 56
 });
57 57
 
58
-add_filter('acf/fields/wysiwyg/toolbars', function ($toolbars) {
58
+add_filter('acf/fields/wysiwyg/toolbars', function($toolbars) {
59 59
     // Load Toolbars and parse them into TinyMCE
60 60
     $toolbarsFromFile = getToolbarsFromJson();
61 61
     if ($toolbarsFromFile) {
Please login to merge, or discard this patch.