reactjs-tiptap-editor-pro 0.2.28 → 0.2.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/RichTextEditor-BwbqJLnA.cjs +141 -0
- package/lib/{RichTextEditor-BC85Dn21.js → RichTextEditor-iGJ6-rbq.js} +1305 -1298
- package/lib/extension-bundle.cjs +2 -2
- package/lib/extension-bundle.d.cts +58 -58
- package/lib/extension-bundle.d.ts +58 -58
- package/lib/extension-bundle.js +72 -72
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +60 -58
- package/lib/index.d.ts +60 -58
- package/lib/index.js +1 -1
- package/lib/locale-bundle.d.cts +58 -58
- package/lib/locale-bundle.d.ts +58 -58
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/lib/RichTextEditor-Cxm0yJdr.cjs +0 -141
package/lib/index.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ declare interface BubbleMenuConfig {
|
|
|
37
37
|
* custom menu actions
|
|
38
38
|
*/
|
|
39
39
|
actions?: ActionButtonProps[];
|
|
40
|
+
items?: string[];
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
/**
|
|
@@ -71,6 +72,7 @@ declare interface BubbleMenuProps {
|
|
|
71
72
|
* @default false
|
|
72
73
|
*/
|
|
73
74
|
hidden?: boolean;
|
|
75
|
+
items?: string[];
|
|
74
76
|
};
|
|
75
77
|
imageConfig?: {
|
|
76
78
|
/**
|
|
@@ -291,9 +293,24 @@ declare module '@tiptap/core' {
|
|
|
291
293
|
|
|
292
294
|
declare module '@tiptap/core' {
|
|
293
295
|
interface Commands<ReturnType> {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
296
|
+
painter: {
|
|
297
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
declare module '@tiptap/core' {
|
|
304
|
+
interface Commands<ReturnType> {
|
|
305
|
+
indent: {
|
|
306
|
+
/**
|
|
307
|
+
* Set the indent attribute
|
|
308
|
+
*/
|
|
309
|
+
indent: () => ReturnType;
|
|
310
|
+
/**
|
|
311
|
+
* Set the outdent attribute
|
|
312
|
+
*/
|
|
313
|
+
outdent: () => ReturnType;
|
|
297
314
|
};
|
|
298
315
|
}
|
|
299
316
|
}
|
|
@@ -335,20 +352,9 @@ declare module '@tiptap/core' {
|
|
|
335
352
|
|
|
336
353
|
declare module '@tiptap/core' {
|
|
337
354
|
interface Commands<ReturnType> {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
declare module '@tiptap/core' {
|
|
346
|
-
interface Commands<ReturnType> {
|
|
347
|
-
emoji: {
|
|
348
|
-
setEmoji: (emoji: {
|
|
349
|
-
name: string;
|
|
350
|
-
emoji: string;
|
|
351
|
-
}) => ReturnType;
|
|
355
|
+
lineHeight: {
|
|
356
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
357
|
+
unsetLineHeight: () => ReturnType;
|
|
352
358
|
};
|
|
353
359
|
}
|
|
354
360
|
}
|
|
@@ -364,22 +370,6 @@ declare module '@tiptap/core' {
|
|
|
364
370
|
}
|
|
365
371
|
|
|
366
372
|
|
|
367
|
-
declare module '@tiptap/core' {
|
|
368
|
-
interface Commands<ReturnType> {
|
|
369
|
-
indent: {
|
|
370
|
-
/**
|
|
371
|
-
* Set the indent attribute
|
|
372
|
-
*/
|
|
373
|
-
indent: () => ReturnType;
|
|
374
|
-
/**
|
|
375
|
-
* Set the outdent attribute
|
|
376
|
-
*/
|
|
377
|
-
outdent: () => ReturnType;
|
|
378
|
-
};
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
|
|
383
373
|
declare module '@tiptap/core' {
|
|
384
374
|
interface Commands<ReturnType> {
|
|
385
375
|
iframe: {
|
|
@@ -412,8 +402,9 @@ declare module '@tiptap/core' {
|
|
|
412
402
|
|
|
413
403
|
declare module '@tiptap/core' {
|
|
414
404
|
interface Commands<ReturnType> {
|
|
415
|
-
|
|
416
|
-
|
|
405
|
+
tableOfContents: {
|
|
406
|
+
setTableOfContents: () => ReturnType;
|
|
407
|
+
removeTableOfContents: () => ReturnType;
|
|
417
408
|
};
|
|
418
409
|
}
|
|
419
410
|
}
|
|
@@ -421,8 +412,11 @@ declare module '@tiptap/core' {
|
|
|
421
412
|
|
|
422
413
|
declare module '@tiptap/core' {
|
|
423
414
|
interface Commands<ReturnType> {
|
|
424
|
-
|
|
425
|
-
|
|
415
|
+
emoji: {
|
|
416
|
+
setEmoji: (emoji: {
|
|
417
|
+
name: string;
|
|
418
|
+
emoji: string;
|
|
419
|
+
}) => ReturnType;
|
|
426
420
|
};
|
|
427
421
|
}
|
|
428
422
|
}
|
|
@@ -430,9 +424,8 @@ declare module '@tiptap/core' {
|
|
|
430
424
|
|
|
431
425
|
declare module '@tiptap/core' {
|
|
432
426
|
interface Commands<ReturnType> {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
removeTableOfContents: () => ReturnType;
|
|
427
|
+
exportWord: {
|
|
428
|
+
exportToWord: () => ReturnType;
|
|
436
429
|
};
|
|
437
430
|
}
|
|
438
431
|
}
|
|
@@ -440,8 +433,8 @@ declare module '@tiptap/core' {
|
|
|
440
433
|
|
|
441
434
|
declare module '@tiptap/core' {
|
|
442
435
|
interface Commands<ReturnType> {
|
|
443
|
-
|
|
444
|
-
|
|
436
|
+
excalidraw: {
|
|
437
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
445
438
|
};
|
|
446
439
|
}
|
|
447
440
|
}
|
|
@@ -449,19 +442,8 @@ declare module '@tiptap/core' {
|
|
|
449
442
|
|
|
450
443
|
declare module '@tiptap/core' {
|
|
451
444
|
interface Commands<ReturnType> {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
* Add an image gif
|
|
455
|
-
*/
|
|
456
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
457
|
-
/**
|
|
458
|
-
* Update an image gif
|
|
459
|
-
*/
|
|
460
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
461
|
-
/**
|
|
462
|
-
* Set image alignment
|
|
463
|
-
*/
|
|
464
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
445
|
+
katex: {
|
|
446
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
465
447
|
};
|
|
466
448
|
}
|
|
467
449
|
}
|
|
@@ -486,6 +468,16 @@ declare module '@tiptap/core' {
|
|
|
486
468
|
}
|
|
487
469
|
|
|
488
470
|
|
|
471
|
+
declare module '@tiptap/core' {
|
|
472
|
+
interface Commands<ReturnType> {
|
|
473
|
+
drawer: {
|
|
474
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
475
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
|
|
489
481
|
declare module '@tiptap/core' {
|
|
490
482
|
interface Commands<ReturnType> {
|
|
491
483
|
twitter: {
|
|
@@ -503,9 +495,19 @@ declare module '@tiptap/core' {
|
|
|
503
495
|
|
|
504
496
|
declare module '@tiptap/core' {
|
|
505
497
|
interface Commands<ReturnType> {
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
498
|
+
imageGifUpload: {
|
|
499
|
+
/**
|
|
500
|
+
* Add an image gif
|
|
501
|
+
*/
|
|
502
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
503
|
+
/**
|
|
504
|
+
* Update an image gif
|
|
505
|
+
*/
|
|
506
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
507
|
+
/**
|
|
508
|
+
* Set image alignment
|
|
509
|
+
*/
|
|
510
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
509
511
|
};
|
|
510
512
|
}
|
|
511
513
|
}
|
package/lib/index.js
CHANGED
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -920,9 +920,24 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
923
|
+
painter: {
|
|
924
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
925
|
+
};
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
declare module '@tiptap/core' {
|
|
931
|
+
interface Commands<ReturnType> {
|
|
932
|
+
indent: {
|
|
933
|
+
/**
|
|
934
|
+
* Set the indent attribute
|
|
935
|
+
*/
|
|
936
|
+
indent: () => ReturnType;
|
|
937
|
+
/**
|
|
938
|
+
* Set the outdent attribute
|
|
939
|
+
*/
|
|
940
|
+
outdent: () => ReturnType;
|
|
926
941
|
};
|
|
927
942
|
}
|
|
928
943
|
}
|
|
@@ -964,20 +979,9 @@ declare module '@tiptap/core' {
|
|
|
964
979
|
|
|
965
980
|
declare module '@tiptap/core' {
|
|
966
981
|
interface Commands<ReturnType> {
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
declare module '@tiptap/core' {
|
|
975
|
-
interface Commands<ReturnType> {
|
|
976
|
-
emoji: {
|
|
977
|
-
setEmoji: (emoji: {
|
|
978
|
-
name: string;
|
|
979
|
-
emoji: string;
|
|
980
|
-
}) => ReturnType;
|
|
982
|
+
lineHeight: {
|
|
983
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
984
|
+
unsetLineHeight: () => ReturnType;
|
|
981
985
|
};
|
|
982
986
|
}
|
|
983
987
|
}
|
|
@@ -993,22 +997,6 @@ declare module '@tiptap/core' {
|
|
|
993
997
|
}
|
|
994
998
|
|
|
995
999
|
|
|
996
|
-
declare module '@tiptap/core' {
|
|
997
|
-
interface Commands<ReturnType> {
|
|
998
|
-
indent: {
|
|
999
|
-
/**
|
|
1000
|
-
* Set the indent attribute
|
|
1001
|
-
*/
|
|
1002
|
-
indent: () => ReturnType;
|
|
1003
|
-
/**
|
|
1004
|
-
* Set the outdent attribute
|
|
1005
|
-
*/
|
|
1006
|
-
outdent: () => ReturnType;
|
|
1007
|
-
};
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
1000
|
declare module '@tiptap/core' {
|
|
1013
1001
|
interface Commands<ReturnType> {
|
|
1014
1002
|
iframe: {
|
|
@@ -1041,8 +1029,9 @@ declare module '@tiptap/core' {
|
|
|
1041
1029
|
|
|
1042
1030
|
declare module '@tiptap/core' {
|
|
1043
1031
|
interface Commands<ReturnType> {
|
|
1044
|
-
|
|
1045
|
-
|
|
1032
|
+
tableOfContents: {
|
|
1033
|
+
setTableOfContents: () => ReturnType;
|
|
1034
|
+
removeTableOfContents: () => ReturnType;
|
|
1046
1035
|
};
|
|
1047
1036
|
}
|
|
1048
1037
|
}
|
|
@@ -1050,8 +1039,11 @@ declare module '@tiptap/core' {
|
|
|
1050
1039
|
|
|
1051
1040
|
declare module '@tiptap/core' {
|
|
1052
1041
|
interface Commands<ReturnType> {
|
|
1053
|
-
|
|
1054
|
-
|
|
1042
|
+
emoji: {
|
|
1043
|
+
setEmoji: (emoji: {
|
|
1044
|
+
name: string;
|
|
1045
|
+
emoji: string;
|
|
1046
|
+
}) => ReturnType;
|
|
1055
1047
|
};
|
|
1056
1048
|
}
|
|
1057
1049
|
}
|
|
@@ -1059,9 +1051,8 @@ declare module '@tiptap/core' {
|
|
|
1059
1051
|
|
|
1060
1052
|
declare module '@tiptap/core' {
|
|
1061
1053
|
interface Commands<ReturnType> {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
removeTableOfContents: () => ReturnType;
|
|
1054
|
+
exportWord: {
|
|
1055
|
+
exportToWord: () => ReturnType;
|
|
1065
1056
|
};
|
|
1066
1057
|
}
|
|
1067
1058
|
}
|
|
@@ -1069,8 +1060,8 @@ declare module '@tiptap/core' {
|
|
|
1069
1060
|
|
|
1070
1061
|
declare module '@tiptap/core' {
|
|
1071
1062
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1063
|
+
excalidraw: {
|
|
1064
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1074
1065
|
};
|
|
1075
1066
|
}
|
|
1076
1067
|
}
|
|
@@ -1078,19 +1069,8 @@ declare module '@tiptap/core' {
|
|
|
1078
1069
|
|
|
1079
1070
|
declare module '@tiptap/core' {
|
|
1080
1071
|
interface Commands<ReturnType> {
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
* Add an image gif
|
|
1084
|
-
*/
|
|
1085
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1086
|
-
/**
|
|
1087
|
-
* Update an image gif
|
|
1088
|
-
*/
|
|
1089
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1090
|
-
/**
|
|
1091
|
-
* Set image alignment
|
|
1092
|
-
*/
|
|
1093
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1072
|
+
katex: {
|
|
1073
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1094
1074
|
};
|
|
1095
1075
|
}
|
|
1096
1076
|
}
|
|
@@ -1115,6 +1095,16 @@ declare module '@tiptap/core' {
|
|
|
1115
1095
|
}
|
|
1116
1096
|
|
|
1117
1097
|
|
|
1098
|
+
declare module '@tiptap/core' {
|
|
1099
|
+
interface Commands<ReturnType> {
|
|
1100
|
+
drawer: {
|
|
1101
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1102
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1103
|
+
};
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
|
|
1118
1108
|
declare module '@tiptap/core' {
|
|
1119
1109
|
interface Commands<ReturnType> {
|
|
1120
1110
|
twitter: {
|
|
@@ -1132,9 +1122,19 @@ declare module '@tiptap/core' {
|
|
|
1132
1122
|
|
|
1133
1123
|
declare module '@tiptap/core' {
|
|
1134
1124
|
interface Commands<ReturnType> {
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1125
|
+
imageGifUpload: {
|
|
1126
|
+
/**
|
|
1127
|
+
* Add an image gif
|
|
1128
|
+
*/
|
|
1129
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1130
|
+
/**
|
|
1131
|
+
* Update an image gif
|
|
1132
|
+
*/
|
|
1133
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1134
|
+
/**
|
|
1135
|
+
* Set image alignment
|
|
1136
|
+
*/
|
|
1137
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -920,9 +920,24 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
923
|
+
painter: {
|
|
924
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
925
|
+
};
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
declare module '@tiptap/core' {
|
|
931
|
+
interface Commands<ReturnType> {
|
|
932
|
+
indent: {
|
|
933
|
+
/**
|
|
934
|
+
* Set the indent attribute
|
|
935
|
+
*/
|
|
936
|
+
indent: () => ReturnType;
|
|
937
|
+
/**
|
|
938
|
+
* Set the outdent attribute
|
|
939
|
+
*/
|
|
940
|
+
outdent: () => ReturnType;
|
|
926
941
|
};
|
|
927
942
|
}
|
|
928
943
|
}
|
|
@@ -964,20 +979,9 @@ declare module '@tiptap/core' {
|
|
|
964
979
|
|
|
965
980
|
declare module '@tiptap/core' {
|
|
966
981
|
interface Commands<ReturnType> {
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
declare module '@tiptap/core' {
|
|
975
|
-
interface Commands<ReturnType> {
|
|
976
|
-
emoji: {
|
|
977
|
-
setEmoji: (emoji: {
|
|
978
|
-
name: string;
|
|
979
|
-
emoji: string;
|
|
980
|
-
}) => ReturnType;
|
|
982
|
+
lineHeight: {
|
|
983
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
984
|
+
unsetLineHeight: () => ReturnType;
|
|
981
985
|
};
|
|
982
986
|
}
|
|
983
987
|
}
|
|
@@ -993,22 +997,6 @@ declare module '@tiptap/core' {
|
|
|
993
997
|
}
|
|
994
998
|
|
|
995
999
|
|
|
996
|
-
declare module '@tiptap/core' {
|
|
997
|
-
interface Commands<ReturnType> {
|
|
998
|
-
indent: {
|
|
999
|
-
/**
|
|
1000
|
-
* Set the indent attribute
|
|
1001
|
-
*/
|
|
1002
|
-
indent: () => ReturnType;
|
|
1003
|
-
/**
|
|
1004
|
-
* Set the outdent attribute
|
|
1005
|
-
*/
|
|
1006
|
-
outdent: () => ReturnType;
|
|
1007
|
-
};
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
1000
|
declare module '@tiptap/core' {
|
|
1013
1001
|
interface Commands<ReturnType> {
|
|
1014
1002
|
iframe: {
|
|
@@ -1041,8 +1029,9 @@ declare module '@tiptap/core' {
|
|
|
1041
1029
|
|
|
1042
1030
|
declare module '@tiptap/core' {
|
|
1043
1031
|
interface Commands<ReturnType> {
|
|
1044
|
-
|
|
1045
|
-
|
|
1032
|
+
tableOfContents: {
|
|
1033
|
+
setTableOfContents: () => ReturnType;
|
|
1034
|
+
removeTableOfContents: () => ReturnType;
|
|
1046
1035
|
};
|
|
1047
1036
|
}
|
|
1048
1037
|
}
|
|
@@ -1050,8 +1039,11 @@ declare module '@tiptap/core' {
|
|
|
1050
1039
|
|
|
1051
1040
|
declare module '@tiptap/core' {
|
|
1052
1041
|
interface Commands<ReturnType> {
|
|
1053
|
-
|
|
1054
|
-
|
|
1042
|
+
emoji: {
|
|
1043
|
+
setEmoji: (emoji: {
|
|
1044
|
+
name: string;
|
|
1045
|
+
emoji: string;
|
|
1046
|
+
}) => ReturnType;
|
|
1055
1047
|
};
|
|
1056
1048
|
}
|
|
1057
1049
|
}
|
|
@@ -1059,9 +1051,8 @@ declare module '@tiptap/core' {
|
|
|
1059
1051
|
|
|
1060
1052
|
declare module '@tiptap/core' {
|
|
1061
1053
|
interface Commands<ReturnType> {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
removeTableOfContents: () => ReturnType;
|
|
1054
|
+
exportWord: {
|
|
1055
|
+
exportToWord: () => ReturnType;
|
|
1065
1056
|
};
|
|
1066
1057
|
}
|
|
1067
1058
|
}
|
|
@@ -1069,8 +1060,8 @@ declare module '@tiptap/core' {
|
|
|
1069
1060
|
|
|
1070
1061
|
declare module '@tiptap/core' {
|
|
1071
1062
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1063
|
+
excalidraw: {
|
|
1064
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1074
1065
|
};
|
|
1075
1066
|
}
|
|
1076
1067
|
}
|
|
@@ -1078,19 +1069,8 @@ declare module '@tiptap/core' {
|
|
|
1078
1069
|
|
|
1079
1070
|
declare module '@tiptap/core' {
|
|
1080
1071
|
interface Commands<ReturnType> {
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
* Add an image gif
|
|
1084
|
-
*/
|
|
1085
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1086
|
-
/**
|
|
1087
|
-
* Update an image gif
|
|
1088
|
-
*/
|
|
1089
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1090
|
-
/**
|
|
1091
|
-
* Set image alignment
|
|
1092
|
-
*/
|
|
1093
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1072
|
+
katex: {
|
|
1073
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1094
1074
|
};
|
|
1095
1075
|
}
|
|
1096
1076
|
}
|
|
@@ -1115,6 +1095,16 @@ declare module '@tiptap/core' {
|
|
|
1115
1095
|
}
|
|
1116
1096
|
|
|
1117
1097
|
|
|
1098
|
+
declare module '@tiptap/core' {
|
|
1099
|
+
interface Commands<ReturnType> {
|
|
1100
|
+
drawer: {
|
|
1101
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1102
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1103
|
+
};
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
|
|
1118
1108
|
declare module '@tiptap/core' {
|
|
1119
1109
|
interface Commands<ReturnType> {
|
|
1120
1110
|
twitter: {
|
|
@@ -1132,9 +1122,19 @@ declare module '@tiptap/core' {
|
|
|
1132
1122
|
|
|
1133
1123
|
declare module '@tiptap/core' {
|
|
1134
1124
|
interface Commands<ReturnType> {
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1125
|
+
imageGifUpload: {
|
|
1126
|
+
/**
|
|
1127
|
+
* Add an image gif
|
|
1128
|
+
*/
|
|
1129
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1130
|
+
/**
|
|
1131
|
+
* Update an image gif
|
|
1132
|
+
*/
|
|
1133
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1134
|
+
/**
|
|
1135
|
+
* Set image alignment
|
|
1136
|
+
*/
|
|
1137
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|