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

custom tags

parent 4de1519f
No related branches found
No related tags found
1 merge request!519Move tool groups
Showing
with 34 additions and 15 deletions
......@@ -26,8 +26,6 @@ import {
TransformService,
TrackOptionsToolGroupService,
TrackCommentOptionsToolGroupService,
CustomTagInlineToolGroupService,
CustomTagBlockToolGroupService,
CustomTagService,
disallowPasteImagesPlugin,
// YjsService,
......@@ -217,7 +215,5 @@ export default {
new TransformService(),
new TrackOptionsToolGroupService(),
new TrackCommentOptionsToolGroupService(),
new CustomTagInlineToolGroupService(),
new CustomTagBlockToolGroupService(),
],
};
......@@ -18,8 +18,6 @@ import {
EditorInfoToolGroupServices,
BottomInfoService,
TransformService,
CustomTagInlineToolGroupService,
CustomTagBlockToolGroupService,
CustomTagService,
} from 'wax-prosemirror-services';
......@@ -101,7 +99,5 @@ export default {
new BottomInfoService(),
new TransformService(),
new CustomTagService(),
new CustomTagInlineToolGroupService(),
new CustomTagBlockToolGroupService(),
],
};
......@@ -26,8 +26,6 @@ import {
TransformService,
TrackOptionsToolGroupService,
TrackCommentOptionsToolGroupService,
CustomTagInlineToolGroupService,
CustomTagBlockToolGroupService,
CustomTagService,
OENContainersService,
} from 'wax-prosemirror-services';
......@@ -215,7 +213,5 @@ export default {
new TransformService(),
new TrackOptionsToolGroupService(),
new TrackCommentOptionsToolGroupService(),
new CustomTagInlineToolGroupService(),
new CustomTagBlockToolGroupService(),
],
};
......@@ -41,8 +41,6 @@ export { default as TrackingAndEditingToolGroupService } from './src/WaxToolGrou
export { default as EditorInfoToolGroupServices } from './src/WaxToolGroups/BottomToolGroupService/InfoToolGroupService/EditorInfoToolGroupService';
export { default as TrackOptionsToolGroupService } from './src/WaxToolGroups/TrackOptionsToolGroupService/TrackOptionsToolGroupService';
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';
/* Plugins */
export { default as disallowPasteImagesPlugin } from './src/ImageService/plugins/disallowPasteImagesPlugin';
import { Service } from 'wax-prosemirror-core';
import InfoToolGroup from './InfoTool';
class EditorInfoToolGroupService extends Service {
name = 'EditorInfoToolGroupService';
register() {
this.container.bind('InfoToolGroup').to(InfoToolGroup);
}
}
export default EditorInfoToolGroupService;
import { injectable, inject } from 'inversify';
import { ToolGroup } from 'wax-prosemirror-core';
@injectable()
class InfoToolGroup extends ToolGroup {
tools = [];
constructor(
@inject('CounterInfoTool') counterinfotool,
@inject('ShortCutsInfoTool') shortcutsinfotool,
) {
super();
this.tools = [shortcutsinfotool, counterinfotool];
}
}
export default InfoToolGroup;
import CustomTagBlockService from './CustomTagBlockService/CustomTagBlockService';
import CustomTagInlineService from './CustomTagInlineService/CustomTagInlineService';
import CustomTagBlockToolGroupService from './CustomTagToolGroupService/CustomTagBlockToolGroupService/CustomTagBlockToolGroupService';
import CustomTagInlineToolGroupService from './CustomTagToolGroupService/CustomTagInlineToolGroupService/CustomTagInlineToolGroupService';
export default [new CustomTagBlockService(), new CustomTagInlineService()];
export default [
new CustomTagBlockService(),
new CustomTagInlineService(),
new CustomTagBlockToolGroupService(),
new CustomTagInlineToolGroupService(),
];
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