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