Skip to content
Snippets Groups Projects
Commit eda648c6 authored by chris's avatar chris
Browse files

rename tool

parent c24d3c1e
No related branches found
No related tags found
1 merge request!330Gap question
......@@ -21,7 +21,7 @@ import {
EditorInfoToolGroupServices,
BottomInfoService,
MultipleChoiceQuestionService,
QuestionsToolGroupService,
MultipleChoiceToolGroupService,
} from 'wax-prosemirror-services';
import { DefaultSchema } from 'wax-prosemirror-utilities';
......@@ -51,7 +51,7 @@ export default {
'Lists',
'Images',
'Tables',
'Questions',
'MultipleChoice',
'FillTheGap',
'FullScreen',
],
......@@ -72,7 +72,7 @@ export default {
new FillTheGapQuestionService(),
new FillTheGapToolGroupService(),
new MultipleChoiceQuestionService(),
new QuestionsToolGroupService(),
new MultipleChoiceToolGroupService(),
new ListsService(),
new LinkService(),
new InlineAnnotationsService(),
......
......@@ -70,4 +70,4 @@ export { default as TrackOptionsToolGroupService } from './src/WaxToolGroups/Tra
export { default as TrackCommentOptionsToolGroupService } from './src/WaxToolGroups/TrackCommentOptionsToolGroupService/TrackCommentOptionsToolGroupService';
export { default as CustomTagInlineToolGroupService } from './src/WaxToolGroups/CustomTagToolGroupService/CustomTagInlineToolGroupService/CustomTagInlineToolGroupService';
export { default as CustomTagBlockToolGroupService } from './src/WaxToolGroups/CustomTagToolGroupService/CustomTagBlockToolGroupService/CustomTagBlockToolGroupService';
export { default as QuestionsToolGroupService } from './src/WaxToolGroups/QuestionsToolGroupService/QuestionsToolGroupService';
export { default as MultipleChoiceToolGroupService } from './src/WaxToolGroups/MultipleChoiceToolGroupService/MultipleChoiceToolGroupService';
import { injectable, inject } from 'inversify';
import ToolGroup from '../../lib/ToolGroup';
@injectable()
class Questions extends ToolGroup {
tools = [];
constructor(@inject('MultipleChoiceQuestion') multipleChoiceQuestion) {
super();
this.tools = [multipleChoiceQuestion];
}
}
export default Questions;
import Service from '../../Service';
import Questions from './Questions';
class QuestionsToolGroupService extends Service {
register() {
this.container.bind('Questions').to(Questions);
}
}
export default QuestionsToolGroupService;
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment