Newer
Older
import { emDash, ellipsis } from 'prosemirror-inputrules';
LinkService,
ListsService,
ListToolGroupService,
BaseService,
BaseToolGroupService,
DisplayBlockLevelService,
DisplayToolGroupService,
NoteService,
NoteToolGroupService,
TrackingAndEditingToolGroupService,
FullScreenService,
FullScreenToolGroupService,
Deleephan K S
committed
HighlightService,
TextHighlightToolGroupServices,
TransformService,
TransformToolGroupService,
CustomTagInlineToolGroupService,
CustomTagBlockToolGroupService,
// YjsService,
// BlockDropDownToolGroupService,
// TitleToolGroupService,
import { TablesService, tableEditing, columnResizing } from 'wax-table-service';
import { EditoriaSchema } from 'wax-prosemirror-core';
paragraph,
} from '@guardian/prosemirror-invisibles';
import CharactersList from './CharactersList';
// const updateTitle = title => {
// console.log(title);
// };
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
const text = `In the shroud of redundant noise, consectetur,
A symphony sweeter than summer is discovered,
In the hearty paws and gentle eyes of a dog, our protector,
A tangible form of love, in fur is covered.
Against every day's chaos, turmoil, and upset,
A wagging tail carries, perhaps, the simplest antidote,
A soothing balm to a soul, in life's whirling roulette,
In each bark and paw, an unwritten heartfelt note.
Faithful are they, standing unwavering by our side,
Through the laughter, the struggles, and silent cries,
In their hearts, a world where compassion and loyalty reside,
Reflecting the truest emotions in their warm, gleaming eyes.
From the grandeur of a golden retriever's gallop,
To the charming chortle of a chihuahua's cheer,
Each breed, each dog, narrates a touching tale,
A saga of love, in their worlds, so clear.
They are guardian angels sporting leathered noses,
Draped in a cloak spun with devotion and trust,
They chase not just toys, but away our woes,
Their love, a precious gem, untouched by worldly rust.
In every dog, there lies a universe obscure,
A cosmos of gentleness veiled by playful veneer,
Their paw prints leave indelible marks, so pure,
Within us, they awaken a love, incredibly dear.
So here's to these creatures, adorable, and fierce,
The ones who teach us about love unfeigned,
In the echoing cacophony of this life, so diverse,
Semper fidelis - forever faithful, their love remains.`;
async function DummyPromise(userInput) {
return new Promise((resolve, reject) => {
setTimeout(() => {
console.log('User input:', userInput);
if (userInput === 'reject') {
reject('Your request could not be processed for now');
} else {
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,
},
},
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',
// },
AskAiContentService: {
AskAiContentTransformation: DummyPromise,
},
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 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(),