From 7218fccb37cf01cb553104ced0894f2ddfd3fb62 Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Fri, 1 Jan 2021 05:25:38 +0200
Subject: [PATCH] properly load service

---
 editors/editoria/src/config/config.js                  |  2 --
 editors/editoria/src/config/configMobile.js            |  2 --
 .../src/BottomInfoService/index.js                     |  4 +++-
 .../InfoToolGroupService/EditorInfoToolGroupService.js | 10 +++++-----
 4 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/editors/editoria/src/config/config.js b/editors/editoria/src/config/config.js
index 330869dd7..3770e3360 100644
--- a/editors/editoria/src/config/config.js
+++ b/editors/editoria/src/config/config.js
@@ -35,7 +35,6 @@ import {
   HighlightService,
   TextHighlightToolGroupServices,
   EditorInfoToolGroupServices,
-  CounterInfoService,
   BottomInfoService,
   TransformService,
   TransformToolGroupService,
@@ -154,7 +153,6 @@ export default {
     new HighlightService(),
     new TextHighlightToolGroupServices(),
     new EditorInfoToolGroupServices(),
-    new CounterInfoService(),
     new BottomInfoService(),
     new TransformService(),
     new TransformToolGroupService(),
diff --git a/editors/editoria/src/config/configMobile.js b/editors/editoria/src/config/configMobile.js
index 6aee8c869..ccb689354 100644
--- a/editors/editoria/src/config/configMobile.js
+++ b/editors/editoria/src/config/configMobile.js
@@ -29,7 +29,6 @@ import {
   HighlightService,
   TextHighlightToolGroupServices,
   EditorInfoToolGroupServices,
-  CounterInfoService,
   BottomInfoService,
   TransformService,
   TransformToolGroupService,
@@ -117,7 +116,6 @@ export default {
     new HighlightService(),
     new TextHighlightToolGroupServices(),
     new EditorInfoToolGroupServices(),
-    new CounterInfoService(),
     new BottomInfoService(),
     new TransformService(),
     new TransformToolGroupService(),
diff --git a/wax-prosemirror-services/src/BottomInfoService/index.js b/wax-prosemirror-services/src/BottomInfoService/index.js
index d6d1738de..31bf3aad9 100644
--- a/wax-prosemirror-services/src/BottomInfoService/index.js
+++ b/wax-prosemirror-services/src/BottomInfoService/index.js
@@ -1 +1,3 @@
-export default [];
+import CounterInfoService from './CounterInfoService/CounterInfoService';
+
+export default [new CounterInfoService()];
diff --git a/wax-prosemirror-services/src/WaxToolGroups/BottomToolGroupService/InfoToolGroupService/EditorInfoToolGroupService.js b/wax-prosemirror-services/src/WaxToolGroups/BottomToolGroupService/InfoToolGroupService/EditorInfoToolGroupService.js
index 4a8726b51..6ffc62038 100644
--- a/wax-prosemirror-services/src/WaxToolGroups/BottomToolGroupService/InfoToolGroupService/EditorInfoToolGroupService.js
+++ b/wax-prosemirror-services/src/WaxToolGroups/BottomToolGroupService/InfoToolGroupService/EditorInfoToolGroupService.js
@@ -3,9 +3,9 @@ import Service from '../../../Service';
 import InfoToolGroup from './InfoTool';
 
 class EditorInfoToolGroupServices extends Service {
-    name = "EditorInfoToolGroupServices";
-    register(){
-        this.container.bind('InfoToolGroup').to(InfoToolGroup);
-    }
+  name = 'EditorInfoToolGroupServices';
+  register() {
+    this.container.bind('InfoToolGroup').to(InfoToolGroup);
+  }
 }
-export default EditorInfoToolGroupServices;
\ No newline at end of file
+export default EditorInfoToolGroupServices;
-- 
GitLab