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

new toolgroup

parent 46c9fb4e
No related branches found
No related tags found
No related merge requests found
import { Service } from 'wax-prosemirror-core';
import ToggleAiTool from './ToggleAiTool';
class AiToolGroupService extends Service {
register() {
this.container.bind('ToggleAiTool').to(ToggleAiTool);
}
}
export default AiToolGroupService;
import { injectable, inject } from 'inversify';
import { ToolGroup } from 'wax-prosemirror-core';
@injectable()
class ToggleAiTool extends ToolGroup {
tools = [];
constructor() {
super();
this.tools = [];
}
}
export default ToggleAiTool;
import { Service } from 'wax-prosemirror-core'; import { Service } from 'wax-prosemirror-core';
import AskAIOverlay from './components/AskAIOverlay'; import AskAIOverlay from './components/AskAIOverlay';
import AskAiSelectionPlugin from './plugins/AskAiSelectionPlugin'; import AskAiSelectionPlugin from './plugins/AskAiSelectionPlugin';
import AiToolGroupService from './AiToolGroupService/AiToolGroupService';
import './AskAiContent.css'; import './AskAiContent.css';
class AskAiContentService extends Service { class AskAiContentService extends Service {
...@@ -28,7 +29,7 @@ class AskAiContentService extends Service { ...@@ -28,7 +29,7 @@ class AskAiContentService extends Service {
); );
} }
register() {} dependencies = [new AiToolGroupService()];
} }
export default AskAiContentService; export default AskAiContentService;
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