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

add new tool

parent 893499ab
No related branches found
No related tags found
1 merge request!326Inline nodeview
......@@ -70,7 +70,7 @@ const Editors = () => {
case 'ncbi':
return <NCBI />;
default:
return <Editoria />;
return <HHMI />;
}
};
......
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;
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');
}
......
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