Newer
Older
import { emDash, ellipsis } from 'prosemirror-inputrules';
import { columnResizing, tableEditing } from 'prosemirror-tables';
ImageService,
PlaceholderService,
InlineAnnotationsService,
LinkService,
ListsService,
ListToolGroupService,
TablesService,
TableToolGroupService,
BaseService,
BaseToolGroupService,
DisplayBlockLevelService,
DisplayToolGroupService,
NoteService,
NoteToolGroupService,
FindAndReplaceService,
TrackingAndEditingToolGroupService,
FullScreenService,
FullScreenToolGroupService,
Deleephan K S
committed
HighlightService,
TextHighlightToolGroupServices,
TransformService,
TransformToolGroupService,
import { DefaultSchema } from 'wax-prosemirror-utilities';
import { WaxSelectionPlugin } from 'wax-prosemirror-plugins';
paragraph,
} from '@guardian/prosemirror-invisibles';
const updateTitle = title => {
console.log(title);
};
toolGroups: [
'Base',
{
name: 'Annotations',
more: ['Superscript', 'Subscript', 'SmallCaps'],
Deleephan K S
committed
'HighlightToolGroup',
{
templateArea: 'commentTrackToolBar',
toolGroups: [
{
name: 'Annotations',
more: [
'Superscript',
'Subscript',
'SmallCaps',
'Emphasis',
'Code',
'Underline',
'StrikeThrough',
],
},
],
},
{
templateArea: 'BottomRightInfo',
RulesService: [emDash, ellipsis],
ShortCutsService: {},
EnableTrackChangeService: { enabled: false },
PmPlugins: [
columnResizing(),
tableEditing(),
invisibles([hardBreak()]),
WaxSelectionPlugin,
],
//as it matters on how PM treats nodes and marks
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
new DisplayBlockLevelService(),
new DisplayToolGroupService(),
new TextBlockLevelService(),
new TextToolGroupService(),
new ListsService(),
new LinkService(),
new InlineAnnotationsService(),
new TrackChangeService(),
new CommentsService(),
new PlaceholderService(),
new ImageService(),
new TablesService(),
new BaseService(),
new BaseToolGroupService(),
new NoteService(),
new TableToolGroupService(),
new ImageToolGroupService(),
new AnnotationToolGroupService(),
new NoteToolGroupService(),
new ListToolGroupService(),
new CodeBlockService(),
new CodeBlockToolGroupService(),
new TrackChangeToolGroupService(),
new DisplayTextToolGroupService(),
new MathService(),
new FindAndReplaceService(),
new TrackingAndEditingToolGroupService(),
new FullScreenService(),
new FullScreenToolGroupService(),
new SpecialCharactersService(),
new SpecialCharactersToolGroupService(),
Deleephan K S
committed
new HighlightService(),
new TextHighlightToolGroupServices(),
new EditorInfoToolGroupServices(),
new BottomInfoService(),
new TransformService(),
new TransformToolGroupService(),