diff --git a/editors/demo/src/Editors.js b/editors/demo/src/Editors.js index abd0628fb70695fdd171c22a2956784070ef3345..d19991a2ed8613a7f85ed0fed95a7dc6ef294736 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 0000000000000000000000000000000000000000..4208c9187c0f0200c1290b9f24cad44e6551f007 --- /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 dc8a934a4c39848ae62a85a4826fdbed77fc3dae..950093760da8cd0deb547d5bdcbfdc96dcdff3a0 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'); }