From 0b241bf0c68142aec32139503eb580e74feedd1d Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Sun, 26 Sep 2021 06:13:09 +0300
Subject: [PATCH] add new tool

---
 editors/demo/src/Editors.js                   |  2 +-
 .../FillTheGapQuestion.js                     | 25 +++++++++++++++++++
 .../FillTheGapQuestionService.js              |  2 ++
 3 files changed, 28 insertions(+), 1 deletion(-)
 create mode 100644 editors/demo/src/HHMI/FillTheGapQuestionService/FillTheGapQuestion.js

diff --git a/editors/demo/src/Editors.js b/editors/demo/src/Editors.js
index abd0628fb..d19991a2e 100644
--- a/editors/demo/src/Editors.js
+++ b/editors/demo/src/Editors.js
@@ -70,7 +70,7 @@ const Editors = () => {
       case 'ncbi':
         return <NCBI />;
       default:
-        return <Editoria />;
+        return <HHMI />;
     }
   };
 
diff --git a/editors/demo/src/HHMI/FillTheGapQuestionService/FillTheGapQuestion.js b/editors/demo/src/HHMI/FillTheGapQuestionService/FillTheGapQuestion.js
new file mode 100644
index 000000000..4208c9187
--- /dev/null
+++ b/editors/demo/src/HHMI/FillTheGapQuestionService/FillTheGapQuestion.js
@@ -0,0 +1,25 @@
+import { injectable } from 'inversify';
+import { Tools } from 'wax-prosemirror-services';
+
+@injectable()
+class FillTheGapQuestion extends Tools {
+  title = 'Add Fill The Gap Question';
+  label = 'Fill The Gap';
+  name = 'Fill The Gap';
+
+  get run() {
+    return (view, context) => {};
+  }
+
+  get active() {
+    return state => {};
+  }
+
+  select = (state, activeViewId) => {};
+
+  get enable() {
+    return state => {};
+  }
+}
+
+export default FillTheGapQuestion;
diff --git a/editors/demo/src/HHMI/FillTheGapQuestionService/FillTheGapQuestionService.js b/editors/demo/src/HHMI/FillTheGapQuestionService/FillTheGapQuestionService.js
index dc8a934a4..950093760 100644
--- a/editors/demo/src/HHMI/FillTheGapQuestionService/FillTheGapQuestionService.js
+++ b/editors/demo/src/HHMI/FillTheGapQuestionService/FillTheGapQuestionService.js
@@ -1,7 +1,9 @@
 import { Service } from 'wax-prosemirror-services';
+import FillTheGapQuestion from './FillTheGapQuestion';
 
 class FillTheGapQuestionService extends Service {
   register() {
+    this.container.bind('FillTheGapQuestion').to(FillTheGapQuestion);
     const createNode = this.container.get('CreateNode');
     const addPortal = this.container.get('AddPortal');
   }
-- 
GitLab