From df35e52fd2c8f379dfe2d6af635f7c3ab3ebe415 Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Fri, 1 Jan 2021 05:07:41 +0200
Subject: [PATCH] cleanup

---
 editors/editoria/src/config/config.js         | 15 +++----------
 editors/editoria/src/config/configMobile.js   | 16 ++++++--------
 .../InfoToolGroupService/InfoTool.js          | 21 +++++++++----------
 3 files changed, 19 insertions(+), 33 deletions(-)

diff --git a/editors/editoria/src/config/config.js b/editors/editoria/src/config/config.js
index 8a532e5a3..396ebf51e 100644
--- a/editors/editoria/src/config/config.js
+++ b/editors/editoria/src/config/config.js
@@ -102,25 +102,16 @@ export default {
     },
     {
       templateArea: 'BottomRightInfo',
-      toolGroups: [
-        {
-          name: 'InfoToolGroup',
-          more: [
-            'CounterInfoTool',
-            'ShortcutTool',
-            'HelpTool'
-          ],
-        },
-      ],
+      toolGroups: ['InfoToolGroup'],
     },
   ],
 
   SchemaService: DefaultSchema,
-
+  TitleService: { updateTitle },
   RulesService: [emDash, ellipsis],
   ShortCutsService: {},
   EnableTrackChangeService: { enabled: false },
-  TitleService: { updateTitle },
+
   PmPlugins: [
     columnResizing(),
     tableEditing(),
diff --git a/editors/editoria/src/config/configMobile.js b/editors/editoria/src/config/configMobile.js
index c0483fa81..f582e7916 100644
--- a/editors/editoria/src/config/configMobile.js
+++ b/editors/editoria/src/config/configMobile.js
@@ -45,6 +45,10 @@ import invisibles, {
   paragraph,
 } from '@guardian/prosemirror-invisibles';
 
+const updateTitle = title => {
+  console.log(title);
+};
+
 export default {
   MenuService: [
     {
@@ -68,21 +72,13 @@ export default {
     },
     {
       templateArea: 'BottomRightInfo',
-      toolGroups: [
-        {
-          name: 'InfoToolGroup',
-          more: [
-            'CounterInfoTool',
-            'ShortcutTool',
-            'HelpTool'
-          ],
-        },
-      ],
+      toolGroups: ['InfoToolGroup'],
     },
   ],
 
   RulesService: [emDash, ellipsis],
   ShortCutsService: {},
+  TitleService: { updateTitle },
   EnableTrackChangeService: { enabled: false },
 
   PmPlugins: [
diff --git a/wax-prosemirror-services/src/WaxToolGroups/BottomToolGroupService/InfoToolGroupService/InfoTool.js b/wax-prosemirror-services/src/WaxToolGroups/BottomToolGroupService/InfoToolGroupService/InfoTool.js
index 5ada453cb..710077481 100644
--- a/wax-prosemirror-services/src/WaxToolGroups/BottomToolGroupService/InfoToolGroupService/InfoTool.js
+++ b/wax-prosemirror-services/src/WaxToolGroups/BottomToolGroupService/InfoToolGroupService/InfoTool.js
@@ -3,16 +3,15 @@ import ToolGroup from '../../../lib/ToolGroup';
 
 @injectable()
 class InfoToolGroup extends ToolGroup {
-    tools = [];
-    constructor(
-      @inject('CounterInfoTool') counterinfotool,
-      @inject('ShortcutTool') shortcuttools,
-      @inject('HelpTool') helptool,
-      ) {
-        
-        super();
-        this.tools = [counterinfotool,shortcuttools,helptool];
-      }
+  tools = [];
+  constructor(
+    @inject('CounterInfoTool') counterinfotool,
+    @inject('ShortcutTool') shortcuttools,
+    @inject('HelpTool') helptool,
+  ) {
+    super();
+    this.tools = [counterinfotool];
+  }
 }
 
-export default InfoToolGroup;
\ No newline at end of file
+export default InfoToolGroup;
-- 
GitLab