Newer
Older
import { emDash, ellipsis } from 'prosemirror-inputrules';
import { columnResizing, tableEditing } from 'prosemirror-tables';
LinkService,
ListsService,
ListToolGroupService,
TablesService,
TableToolGroupService,
BaseService,
BaseToolGroupService,
DisplayBlockLevelService,
DisplayToolGroupService,
NoteService,
NoteToolGroupService,
TrackingAndEditingToolGroupService,
FullScreenService,
FullScreenToolGroupService,
Deleephan K S
committed
HighlightService,
TextHighlightToolGroupServices,
TransformService,
TransformToolGroupService,
CustomTagInlineToolGroupService,
CustomTagBlockToolGroupService,
// YjsService,
// BlockDropDownToolGroupService,
// TitleToolGroupService,
import { EditoriaSchema } from 'wax-prosemirror-core';
paragraph,
} from '@guardian/prosemirror-invisibles';
import CharactersList from './CharactersList';
// const updateTitle = title => {
// console.log(title);
// };
const updateTitle = debounce(title => {
const updateTrackStatus = status => {
// console.log('status', status);
};
more: [
'Superscript',
'Subscript',
'SmallCaps',
'Underline',
'StrikeThrough',
],
Deleephan K S
committed
'HighlightToolGroup',
{
templateArea: 'leftSideBar',
toolGroups: ['DisplayText'],
},
toolGroups: ['TrackCommentOptions'],
{
templateArea: 'BottomRightInfo',
// OrderedListService: { subList: false },
// BulletListService: { subList: false },
// JoinUpService: { subList: false },
EnableTrackChangeService: { enabled: false, toggle: true, updateTrackStatus },
AcceptTrackChangeService: {
own: {
},
others: {
accept: true,
},
},
RejectTrackChangeService: {
own: {
reject: true,
},
others: {
reject: true,
},
},
PmPlugins: [
columnResizing(),
tableEditing(),
invisibles([hardBreak()]),
disallowPasteImagesPlugin(() =>
onWarning(
'Images are not allowed. Please upload them through filemanager',
),
),
],
CustomTagService: {
tags: [
{ label: 'custom-tag-label-1', tagType: 'inline' },
{ label: 'custom-tag-label-2', tagType: 'inline' },
// YjsService: {
// // eslint-disable-next-line no-restricted-globals
// connectionUrl: 'ws://localhost:4000',
// docIdentifier: 'prosemirror-demo',
// },
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 TableToolGroupService(),
new ImageToolGroupService(),
new AnnotationToolGroupService(),
new NoteToolGroupService(),
new ListToolGroupService(),
new CodeBlockService(),
new CodeBlockToolGroupService(),
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(),
new TrackCommentOptionsToolGroupService(),
new CustomTagInlineToolGroupService(),
new CustomTagBlockToolGroupService(),