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

config cleanup

parent 79ae075d
No related branches found
No related tags found
1 merge request!232feat(custom-tag-block): added custom-tag-block
import { emDash, ellipsis } from 'prosemirror-inputrules';
import { columnResizing, tableEditing } from 'prosemirror-tables';
import {
InlineAnnotationsService,
AnnotationToolGroupService,
ImageService,
InlineAnnotationsService,
ImageToolGroupService,
LinkService,
ListsService,
ListToolGroupService,
......@@ -13,7 +14,6 @@ import {
BaseToolGroupService,
DisplayBlockLevelService,
DisplayToolGroupService,
ImageToolGroupService,
TextBlockLevelService,
TextToolGroupService,
NoteService,
......@@ -37,10 +37,8 @@ import {
BottomInfoService,
TransformService,
TransformToolGroupService,
TrackOptionsService,
TrackOptionsToolGroupService,
TrackCommentOptionsToolGroupService,
CustomTagInlineService,
CustomTagInlineToolGroupService,
CustomTagBlockToolGroupService,
CustomTagService,
......@@ -139,8 +137,6 @@ export default {
],
},
// Always load first CommentsService and LinkService,
//as it matters on how PM treats nodes and marks
services: [
new DisplayBlockLevelService(),
new DisplayToolGroupService(),
......
import React from 'react';
// eslint-disable-next-line import/no-named-as-default,import/no-named-as-default-member
import Tools from '../../lib/Tools';
import { v4 as uuidv4 } from 'uuid';
import { CustomTagInlineComponent } from 'wax-prosemirror-components';
import Tools from '../../lib/Tools';
class CustomTagInLineTool extends Tools {
title = 'Custom Tag Inline';
......@@ -11,7 +10,11 @@ class CustomTagInLineTool extends Tools {
renderTool(view) {
return (
<CustomTagInlineComponent item={this.toJSON()} key={uuidv4()} view={view} />
<CustomTagInlineComponent
item={this.toJSON()}
key={uuidv4()}
view={view}
/>
);
}
}
......
......@@ -5,4 +5,4 @@ class CustomTagService extends Service {
dependencies = CustomService;
}
export default CustomTagService;
\ No newline at end of file
export default CustomTagService;
import CustomTagBlockService from "./CustomTagBlockService/CustomTagBlockService";
import CustomTagInlineService from "./CustomTagInlineService/CustomTagInlineService";
import CustomTagBlockService from './CustomTagBlockService/CustomTagBlockService';
import CustomTagInlineService from './CustomTagInlineService/CustomTagInlineService';
export default [
new CustomTagBlockService(),
new CustomTagInlineService()
];
\ No newline at end of file
export default [new CustomTagBlockService(), new CustomTagInlineService()];
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