Newer
Older
import { emDash, ellipsis } from 'prosemirror-inputrules';
import { columnResizing, tableEditing } from 'prosemirror-tables';
import {
AnnotationToolGroupService,
ImageService,
InlineAnnotationsService,
LinkService,
ListsService,
ListToolGroupService,
TablesService,
BaseService,
BaseToolGroupService,
DisplayBlockLevelService,
DisplayToolGroupService,
ImageToolGroupService,
TextBlockLevelService,
TextToolGroupService,
NoteService,
NoteToolGroupService,
TrackChangeService,
CommentsService,
CodeBlockService,
CodeBlockToolGroupService,
DisplayTextToolGroupService,
BlockDropDownToolGroupService,
Deleephan K S
committed
HighlightService,
TextHighlightToolGroupServices,
TransformService,
TransformToolGroupService,
CustomTagInlineToolGroupService,
CustomTagBlockToolGroupService,
import { DefaultSchema } from 'wax-prosemirror-core';
import invisibles, {
space,
hardBreak,
paragraph,
} from '@guardian/prosemirror-invisibles';
export default {
MenuService: [
{
templateArea: 'topBar',
toolGroups: [
'Base',
{
name: 'Annotations',
more: ['Superscript', 'Subscript', 'SmallCaps'],
},
Deleephan K S
committed
'HighlightToolGroup',
'BlockDropDown',
'Notes',
'Lists',
'Images',
'CodeBlock',
'Tables',
{
templateArea: 'BottomRightInfo',
PmPlugins: [columnResizing(), tableEditing(), invisibles([hardBreak()])],
CustomTagService: {
tags: [
{ label: 'custom-tag-label-1', tagType: 'inline' },
{ label: 'custom-tag-label-2', tagType: 'inline' },
// Always load first CommentsService and LinkService,
//as it matters on how PM treats nodes and marks
services: [
new DisplayBlockLevelService(),
new DisplayToolGroupService(),
new TextBlockLevelService(),
new TextToolGroupService(),
new ListsService(),
new LinkService(),
new InlineAnnotationsService(),
new TrackChangeService(),
new CommentsService(),
new ImageService(),
new TablesService(),
new BaseService(),
new BaseToolGroupService(),
new NoteService(),
new ImageToolGroupService(),
new AnnotationToolGroupService(),
new NoteToolGroupService(),
new ListToolGroupService(),
new CodeBlockService(),
new CodeBlockToolGroupService(),
new DisplayTextToolGroupService(),
new BlockDropDownToolGroupService(),
Deleephan K S
committed
new HighlightService(),
new TextHighlightToolGroupServices(),
new EditorInfoToolGroupServices(),
new BottomInfoService(),
new TransformService(),
new TransformToolGroupService(),
new CustomTagInlineToolGroupService(),
new CustomTagBlockToolGroupService(),