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

new toolgroup service

parent 055c037b
No related branches found
No related tags found
1 merge request!226Ui components
...@@ -38,6 +38,8 @@ import { ...@@ -38,6 +38,8 @@ import {
BottomInfoService, BottomInfoService,
TransformService, TransformService,
TransformToolGroupService, TransformToolGroupService,
TrackOptionsService,
TrackOptionsToolGroupService,
} from 'wax-prosemirror-services'; } from 'wax-prosemirror-services';
import { DefaultSchema } from 'wax-prosemirror-utilities'; import { DefaultSchema } from 'wax-prosemirror-utilities';
...@@ -181,5 +183,7 @@ export default { ...@@ -181,5 +183,7 @@ export default {
new BottomInfoService(), new BottomInfoService(),
new TransformService(), new TransformService(),
new TransformToolGroupService(), new TransformToolGroupService(),
new TrackOptionsService(),
new TrackOptionsToolGroupService(),
], ],
}; };
...@@ -58,3 +58,4 @@ export { default as SpecialCharactersToolGroupService } from './src/WaxToolGroup ...@@ -58,3 +58,4 @@ export { default as SpecialCharactersToolGroupService } from './src/WaxToolGroup
export { default as TextHighlightToolGroupServices } from './src/WaxToolGroups/TextHighlightToolGroupService/TextHighlightToolGroupService'; export { default as TextHighlightToolGroupServices } from './src/WaxToolGroups/TextHighlightToolGroupService/TextHighlightToolGroupService';
export { default as EditorInfoToolGroupServices } from './src/WaxToolGroups/BottomToolGroupService/InfoToolGroupService/EditorInfoToolGroupService'; export { default as EditorInfoToolGroupServices } from './src/WaxToolGroups/BottomToolGroupService/InfoToolGroupService/EditorInfoToolGroupService';
export { default as TransformToolGroupService } from './src/WaxToolGroups/TransformToolGroupService/TransformToolGroupService'; export { default as TransformToolGroupService } from './src/WaxToolGroups/TransformToolGroupService/TransformToolGroupService';
export { default as TrackOptionsToolGroupService } from './src/WaxToolGroups/TrackOptionsToolGroupService/TrackOptionsToolGroupService';
import { injectable, inject } from 'inversify';
import ToolGroup from '../../lib/ToolGroup';
@injectable()
class TrackOptions extends ToolGroup {
tools = [];
constructor() {
super();
this.tools = [];
}
}
export default TrackOptions;
import Service from '../../Service';
import TrackOptions from './TrackOptions';
class TrackOptionsToolGroupService extends Service {
register() {
this.container.bind('TrackOptions').to(TrackOptions);
}
}
export default TrackOptionsToolGroupService;
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