reactjs-tiptap-editor 0.0.54 → 0.0.56
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/index.d.cts +70 -94
- package/lib/index.d.ts +70 -94
- package/lib/locales-CLNCJZPj.cjs +1 -0
- package/lib/{locales-Ct86Kf3R.js → locales-E7ejmU-m.js} +7 -3
- package/lib/reactjs-tiptap-editor.cjs +1 -1
- package/lib/reactjs-tiptap-editor.js +38 -40
- package/lib/style.css +1 -1
- package/lib/tiptap-BFNxun5r.cjs +116 -0
- package/lib/{tiptap-BjeL17_y.js → tiptap-Mwj1-K_2.js} +453 -432
- package/lib/utils-BO7sFdSV.cjs +151 -0
- package/lib/{utils-DDaZuw5x.js → utils-CJjl6DGr.js} +2308 -2404
- package/lib/{vendor-CXgFM3bq.js → vendor-BrYdTHr0.js} +1565 -1549
- package/lib/{vendor-LpRkiQE5.cjs → vendor-CKt2gBNV.cjs} +13 -13
- package/package.json +62 -60
- package/lib/locales-BH0zr7-f.cjs +0 -1
- package/lib/tiptap-C4ncZOhh.cjs +0 -116
- package/lib/utils-D-BYJxOw.cjs +0 -151
package/lib/index.d.cts
CHANGED
|
@@ -28,7 +28,6 @@ import { Mark } from '@tiptap/core';
|
|
|
28
28
|
import { MentionNodeAttrs } from '@tiptap/extension-mention';
|
|
29
29
|
import { MentionOptions } from '@tiptap/extension-mention';
|
|
30
30
|
import { Node as Node_2 } from '@tiptap/core';
|
|
31
|
-
import { Node as Node_3 } from '@tiptap/react';
|
|
32
31
|
import { OrderedListOptions as OrderedListOptions_2 } from '@tiptap/extension-ordered-list';
|
|
33
32
|
import { ParagraphOptions } from '@tiptap/extension-paragraph';
|
|
34
33
|
import { PlaceholderOptions } from '@tiptap/extension-placeholder';
|
|
@@ -456,6 +455,7 @@ export declare const en: {
|
|
|
456
455
|
'editor.image.dialog.tab.upload': string;
|
|
457
456
|
'editor.image.dialog.tab.uploadCrop': string;
|
|
458
457
|
'editor.image.dialog.uploading': string;
|
|
458
|
+
'editor.link.dialog.inline': string;
|
|
459
459
|
'editor.image.dialog.form.link': string;
|
|
460
460
|
'editor.image.dialog.placeholder': string;
|
|
461
461
|
'editor.image.dialog.form.alt': string;
|
|
@@ -620,11 +620,17 @@ export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2,
|
|
|
620
620
|
|
|
621
621
|
export declare const Iframe: Node_2<any, any>;
|
|
622
622
|
|
|
623
|
+
declare interface IImageOptions extends GeneralOptions<IImageOptions> {
|
|
624
|
+
/** Function for uploading files */
|
|
625
|
+
upload?: (file: File) => Promise<string>;
|
|
626
|
+
HTMLAttributes?: any;
|
|
627
|
+
}
|
|
628
|
+
|
|
623
629
|
declare interface IKatexOptions {
|
|
624
630
|
HTMLAttributes: Record<string, any>;
|
|
625
631
|
}
|
|
626
632
|
|
|
627
|
-
declare const Image_2: Node_2<
|
|
633
|
+
declare const Image_2: Node_2<IImageOptions, any>;
|
|
628
634
|
export { Image_2 as Image }
|
|
629
635
|
|
|
630
636
|
export declare const ImageGif: Node_2<ImageGifOptions, any>;
|
|
@@ -636,15 +642,6 @@ declare interface ImageGifOptions extends ImageOptions {
|
|
|
636
642
|
GIPHY_API_KEY: string;
|
|
637
643
|
}
|
|
638
644
|
|
|
639
|
-
export declare const ImageUpload: Node_3<ImageUploadOptions, any>;
|
|
640
|
-
|
|
641
|
-
export declare interface ImageUploadOptions {
|
|
642
|
-
upload: (file: File) => Promise<string>;
|
|
643
|
-
postUpload?: (url: string) => Promise<string>;
|
|
644
|
-
acceptMimes: string[];
|
|
645
|
-
maxSize: number;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
645
|
export declare const ImportWord: Extension<ImportWordOptions, any>;
|
|
649
646
|
|
|
650
647
|
declare interface ImportWordOptions extends GeneralOptions<ImportWordOptions> {
|
|
@@ -830,6 +827,7 @@ export declare const pt_BR: {
|
|
|
830
827
|
'editor.image.dialog.title': string;
|
|
831
828
|
'editor.image.dialog.tab.url': string;
|
|
832
829
|
'editor.image.dialog.tab.upload': string;
|
|
830
|
+
'editor.link.dialog.inline': string;
|
|
833
831
|
'editor.image.dialog.tab.uploadCrop': string;
|
|
834
832
|
'editor.image.dialog.uploading': string;
|
|
835
833
|
'editor.image.dialog.form.link': string;
|
|
@@ -953,8 +951,6 @@ declare interface RichTextEditorProps {
|
|
|
953
951
|
minHeight?: string | number;
|
|
954
952
|
/** Maximum height */
|
|
955
953
|
maxHeight?: string | number;
|
|
956
|
-
/** Editor class */
|
|
957
|
-
editorClass?: string | string[] | Record<string, any>;
|
|
958
954
|
/** Content class */
|
|
959
955
|
contentClass?: string | string[] | Record<string, any>;
|
|
960
956
|
/** Content change callback */
|
|
@@ -988,12 +984,13 @@ export declare interface SetImageAttrsOptions {
|
|
|
988
984
|
src?: string;
|
|
989
985
|
/** The alternative text for the image. */
|
|
990
986
|
alt?: string;
|
|
991
|
-
/** The
|
|
992
|
-
|
|
987
|
+
/** The caption of the image. */
|
|
988
|
+
caption?: string;
|
|
993
989
|
/** The width of the image. */
|
|
994
990
|
width?: number | string | null;
|
|
995
991
|
/** The alignment of the image. */
|
|
996
992
|
align?: 'left' | 'center' | 'right';
|
|
993
|
+
inline?: boolean;
|
|
997
994
|
}
|
|
998
995
|
|
|
999
996
|
export declare const SlashCommand: Extension<any, any>;
|
|
@@ -1174,6 +1171,7 @@ export declare const vi: {
|
|
|
1174
1171
|
'editor.image.dialog.title': string;
|
|
1175
1172
|
'editor.image.dialog.tab.url': string;
|
|
1176
1173
|
'editor.image.dialog.tab.upload': string;
|
|
1174
|
+
'editor.link.dialog.inline': string;
|
|
1177
1175
|
'editor.image.dialog.tab.uploadCrop': string;
|
|
1178
1176
|
'editor.image.dialog.uploading': string;
|
|
1179
1177
|
'editor.image.dialog.form.link': string;
|
|
@@ -1263,7 +1261,7 @@ export declare const Video: Node_2<VideoOptions, any>;
|
|
|
1263
1261
|
/**
|
|
1264
1262
|
* Represents the interface for video options, extending GeneralOptions.
|
|
1265
1263
|
*/
|
|
1266
|
-
export declare interface VideoOptions {
|
|
1264
|
+
export declare interface VideoOptions extends GeneralOptions<VideoOptions> {
|
|
1267
1265
|
/**
|
|
1268
1266
|
* Indicates whether fullscreen play is allowed
|
|
1269
1267
|
*
|
|
@@ -1286,15 +1284,10 @@ export declare interface VideoOptions {
|
|
|
1286
1284
|
HTMLAttributes: {
|
|
1287
1285
|
[key: string]: any;
|
|
1288
1286
|
};
|
|
1287
|
+
/** Function for uploading files */
|
|
1289
1288
|
upload?: (file: File) => Promise<string>;
|
|
1290
1289
|
}
|
|
1291
1290
|
|
|
1292
|
-
declare interface VideoOptions_2 {
|
|
1293
|
-
upload?: (files: File[]) => void;
|
|
1294
|
-
}
|
|
1295
|
-
|
|
1296
|
-
export declare const VideoUpload: Node_2<VideoOptions_2, any>;
|
|
1297
|
-
|
|
1298
1291
|
export declare const zh_CN: {
|
|
1299
1292
|
'editor.remove': string;
|
|
1300
1293
|
'editor.copy': string;
|
|
@@ -1376,6 +1369,7 @@ export declare const zh_CN: {
|
|
|
1376
1369
|
'editor.image.dialog.title': string;
|
|
1377
1370
|
'editor.image.dialog.tab.url': string;
|
|
1378
1371
|
'editor.image.dialog.tab.upload': string;
|
|
1372
|
+
'editor.link.dialog.inline': string;
|
|
1379
1373
|
'editor.image.dialog.uploading': string;
|
|
1380
1374
|
'editor.image.dialog.form.link': string;
|
|
1381
1375
|
'editor.image.dialog.placeholder': string;
|
|
@@ -1497,26 +1491,6 @@ declare module '@tiptap/core' {
|
|
|
1497
1491
|
}
|
|
1498
1492
|
|
|
1499
1493
|
|
|
1500
|
-
declare module '@tiptap/core' {
|
|
1501
|
-
interface Commands<ReturnType> {
|
|
1502
|
-
imageResize: {
|
|
1503
|
-
/**
|
|
1504
|
-
* Add an image
|
|
1505
|
-
*/
|
|
1506
|
-
setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1507
|
-
/**
|
|
1508
|
-
* Update an image
|
|
1509
|
-
*/
|
|
1510
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1511
|
-
/**
|
|
1512
|
-
* Set image alignment
|
|
1513
|
-
*/
|
|
1514
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1515
|
-
};
|
|
1516
|
-
}
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
1494
|
declare module '@tiptap/core' {
|
|
1521
1495
|
interface Commands<ReturnType> {
|
|
1522
1496
|
lineHeight: {
|
|
@@ -1545,17 +1519,8 @@ declare module '@tiptap/core' {
|
|
|
1545
1519
|
|
|
1546
1520
|
declare module '@tiptap/core' {
|
|
1547
1521
|
interface Commands<ReturnType> {
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
};
|
|
1551
|
-
}
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
declare module '@tiptap/core' {
|
|
1556
|
-
interface Commands<ReturnType> {
|
|
1557
|
-
videoUpload: {
|
|
1558
|
-
setVideoUpload: () => ReturnType;
|
|
1522
|
+
painter: {
|
|
1523
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1559
1524
|
};
|
|
1560
1525
|
}
|
|
1561
1526
|
}
|
|
@@ -1587,8 +1552,19 @@ declare module '@tiptap/core' {
|
|
|
1587
1552
|
|
|
1588
1553
|
declare module '@tiptap/core' {
|
|
1589
1554
|
interface Commands<ReturnType> {
|
|
1590
|
-
|
|
1591
|
-
|
|
1555
|
+
imageResize: {
|
|
1556
|
+
/**
|
|
1557
|
+
* Add an image
|
|
1558
|
+
*/
|
|
1559
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1560
|
+
/**
|
|
1561
|
+
* Update an image
|
|
1562
|
+
*/
|
|
1563
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1564
|
+
/**
|
|
1565
|
+
* Set image alignment
|
|
1566
|
+
*/
|
|
1567
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1592
1568
|
};
|
|
1593
1569
|
}
|
|
1594
1570
|
}
|
|
@@ -1609,27 +1585,6 @@ declare module '@tiptap/core' {
|
|
|
1609
1585
|
}
|
|
1610
1586
|
|
|
1611
1587
|
|
|
1612
|
-
declare module '@tiptap/core' {
|
|
1613
|
-
interface Commands<ReturnType> {
|
|
1614
|
-
emoji: {
|
|
1615
|
-
setEmoji: (emoji: {
|
|
1616
|
-
name: string;
|
|
1617
|
-
emoji: string;
|
|
1618
|
-
}) => ReturnType;
|
|
1619
|
-
};
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
declare module '@tiptap/core' {
|
|
1625
|
-
interface Commands<ReturnType> {
|
|
1626
|
-
exportWord: {
|
|
1627
|
-
exportToWord: () => ReturnType;
|
|
1628
|
-
};
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
1588
|
declare module '@tiptap/core' {
|
|
1634
1589
|
interface Commands<ReturnType> {
|
|
1635
1590
|
search: {
|
|
@@ -1647,8 +1602,11 @@ declare module '@tiptap/core' {
|
|
|
1647
1602
|
|
|
1648
1603
|
declare module '@tiptap/core' {
|
|
1649
1604
|
interface Commands<ReturnType> {
|
|
1650
|
-
|
|
1651
|
-
|
|
1605
|
+
emoji: {
|
|
1606
|
+
setEmoji: (emoji: {
|
|
1607
|
+
name: string;
|
|
1608
|
+
emoji: string;
|
|
1609
|
+
}) => ReturnType;
|
|
1652
1610
|
};
|
|
1653
1611
|
}
|
|
1654
1612
|
}
|
|
@@ -1666,18 +1624,8 @@ declare module '@tiptap/core' {
|
|
|
1666
1624
|
|
|
1667
1625
|
declare module '@tiptap/core' {
|
|
1668
1626
|
interface Commands<ReturnType> {
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
};
|
|
1672
|
-
}
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
declare module '@tiptap/core' {
|
|
1677
|
-
interface Commands<ReturnType> {
|
|
1678
|
-
mermaid: {
|
|
1679
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1680
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1627
|
+
katex: {
|
|
1628
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1681
1629
|
};
|
|
1682
1630
|
}
|
|
1683
1631
|
}
|
|
@@ -1685,8 +1633,8 @@ declare module '@tiptap/core' {
|
|
|
1685
1633
|
|
|
1686
1634
|
declare module '@tiptap/core' {
|
|
1687
1635
|
interface Commands<ReturnType> {
|
|
1688
|
-
|
|
1689
|
-
|
|
1636
|
+
exportWord: {
|
|
1637
|
+
exportToWord: () => ReturnType;
|
|
1690
1638
|
};
|
|
1691
1639
|
}
|
|
1692
1640
|
}
|
|
@@ -1712,8 +1660,31 @@ declare module '@tiptap/core' {
|
|
|
1712
1660
|
}
|
|
1713
1661
|
|
|
1714
1662
|
|
|
1715
|
-
declare
|
|
1716
|
-
|
|
1663
|
+
declare module '@tiptap/core' {
|
|
1664
|
+
interface Commands<ReturnType> {
|
|
1665
|
+
attachment: {
|
|
1666
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1667
|
+
};
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
|
|
1672
|
+
declare module '@tiptap/core' {
|
|
1673
|
+
interface Commands<ReturnType> {
|
|
1674
|
+
mermaid: {
|
|
1675
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1676
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1677
|
+
};
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
|
|
1682
|
+
declare module '@tiptap/core' {
|
|
1683
|
+
interface Commands<ReturnType> {
|
|
1684
|
+
excalidraw: {
|
|
1685
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1686
|
+
};
|
|
1687
|
+
}
|
|
1717
1688
|
}
|
|
1718
1689
|
|
|
1719
1690
|
|
|
@@ -1725,3 +1696,8 @@ declare namespace DialogHeader {
|
|
|
1725
1696
|
declare namespace DialogFooter {
|
|
1726
1697
|
var displayName: string;
|
|
1727
1698
|
}
|
|
1699
|
+
|
|
1700
|
+
|
|
1701
|
+
declare namespace DropdownMenuShortcut {
|
|
1702
|
+
var displayName: string;
|
|
1703
|
+
}
|
package/lib/index.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ import { Mark } from '@tiptap/core';
|
|
|
28
28
|
import { MentionNodeAttrs } from '@tiptap/extension-mention';
|
|
29
29
|
import { MentionOptions } from '@tiptap/extension-mention';
|
|
30
30
|
import { Node as Node_2 } from '@tiptap/core';
|
|
31
|
-
import { Node as Node_3 } from '@tiptap/react';
|
|
32
31
|
import { OrderedListOptions as OrderedListOptions_2 } from '@tiptap/extension-ordered-list';
|
|
33
32
|
import { ParagraphOptions } from '@tiptap/extension-paragraph';
|
|
34
33
|
import { PlaceholderOptions } from '@tiptap/extension-placeholder';
|
|
@@ -456,6 +455,7 @@ export declare const en: {
|
|
|
456
455
|
'editor.image.dialog.tab.upload': string;
|
|
457
456
|
'editor.image.dialog.tab.uploadCrop': string;
|
|
458
457
|
'editor.image.dialog.uploading': string;
|
|
458
|
+
'editor.link.dialog.inline': string;
|
|
459
459
|
'editor.image.dialog.form.link': string;
|
|
460
460
|
'editor.image.dialog.placeholder': string;
|
|
461
461
|
'editor.image.dialog.form.alt': string;
|
|
@@ -620,11 +620,17 @@ export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2,
|
|
|
620
620
|
|
|
621
621
|
export declare const Iframe: Node_2<any, any>;
|
|
622
622
|
|
|
623
|
+
declare interface IImageOptions extends GeneralOptions<IImageOptions> {
|
|
624
|
+
/** Function for uploading files */
|
|
625
|
+
upload?: (file: File) => Promise<string>;
|
|
626
|
+
HTMLAttributes?: any;
|
|
627
|
+
}
|
|
628
|
+
|
|
623
629
|
declare interface IKatexOptions {
|
|
624
630
|
HTMLAttributes: Record<string, any>;
|
|
625
631
|
}
|
|
626
632
|
|
|
627
|
-
declare const Image_2: Node_2<
|
|
633
|
+
declare const Image_2: Node_2<IImageOptions, any>;
|
|
628
634
|
export { Image_2 as Image }
|
|
629
635
|
|
|
630
636
|
export declare const ImageGif: Node_2<ImageGifOptions, any>;
|
|
@@ -636,15 +642,6 @@ declare interface ImageGifOptions extends ImageOptions {
|
|
|
636
642
|
GIPHY_API_KEY: string;
|
|
637
643
|
}
|
|
638
644
|
|
|
639
|
-
export declare const ImageUpload: Node_3<ImageUploadOptions, any>;
|
|
640
|
-
|
|
641
|
-
export declare interface ImageUploadOptions {
|
|
642
|
-
upload: (file: File) => Promise<string>;
|
|
643
|
-
postUpload?: (url: string) => Promise<string>;
|
|
644
|
-
acceptMimes: string[];
|
|
645
|
-
maxSize: number;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
645
|
export declare const ImportWord: Extension<ImportWordOptions, any>;
|
|
649
646
|
|
|
650
647
|
declare interface ImportWordOptions extends GeneralOptions<ImportWordOptions> {
|
|
@@ -830,6 +827,7 @@ export declare const pt_BR: {
|
|
|
830
827
|
'editor.image.dialog.title': string;
|
|
831
828
|
'editor.image.dialog.tab.url': string;
|
|
832
829
|
'editor.image.dialog.tab.upload': string;
|
|
830
|
+
'editor.link.dialog.inline': string;
|
|
833
831
|
'editor.image.dialog.tab.uploadCrop': string;
|
|
834
832
|
'editor.image.dialog.uploading': string;
|
|
835
833
|
'editor.image.dialog.form.link': string;
|
|
@@ -953,8 +951,6 @@ declare interface RichTextEditorProps {
|
|
|
953
951
|
minHeight?: string | number;
|
|
954
952
|
/** Maximum height */
|
|
955
953
|
maxHeight?: string | number;
|
|
956
|
-
/** Editor class */
|
|
957
|
-
editorClass?: string | string[] | Record<string, any>;
|
|
958
954
|
/** Content class */
|
|
959
955
|
contentClass?: string | string[] | Record<string, any>;
|
|
960
956
|
/** Content change callback */
|
|
@@ -988,12 +984,13 @@ export declare interface SetImageAttrsOptions {
|
|
|
988
984
|
src?: string;
|
|
989
985
|
/** The alternative text for the image. */
|
|
990
986
|
alt?: string;
|
|
991
|
-
/** The
|
|
992
|
-
|
|
987
|
+
/** The caption of the image. */
|
|
988
|
+
caption?: string;
|
|
993
989
|
/** The width of the image. */
|
|
994
990
|
width?: number | string | null;
|
|
995
991
|
/** The alignment of the image. */
|
|
996
992
|
align?: 'left' | 'center' | 'right';
|
|
993
|
+
inline?: boolean;
|
|
997
994
|
}
|
|
998
995
|
|
|
999
996
|
export declare const SlashCommand: Extension<any, any>;
|
|
@@ -1174,6 +1171,7 @@ export declare const vi: {
|
|
|
1174
1171
|
'editor.image.dialog.title': string;
|
|
1175
1172
|
'editor.image.dialog.tab.url': string;
|
|
1176
1173
|
'editor.image.dialog.tab.upload': string;
|
|
1174
|
+
'editor.link.dialog.inline': string;
|
|
1177
1175
|
'editor.image.dialog.tab.uploadCrop': string;
|
|
1178
1176
|
'editor.image.dialog.uploading': string;
|
|
1179
1177
|
'editor.image.dialog.form.link': string;
|
|
@@ -1263,7 +1261,7 @@ export declare const Video: Node_2<VideoOptions, any>;
|
|
|
1263
1261
|
/**
|
|
1264
1262
|
* Represents the interface for video options, extending GeneralOptions.
|
|
1265
1263
|
*/
|
|
1266
|
-
export declare interface VideoOptions {
|
|
1264
|
+
export declare interface VideoOptions extends GeneralOptions<VideoOptions> {
|
|
1267
1265
|
/**
|
|
1268
1266
|
* Indicates whether fullscreen play is allowed
|
|
1269
1267
|
*
|
|
@@ -1286,15 +1284,10 @@ export declare interface VideoOptions {
|
|
|
1286
1284
|
HTMLAttributes: {
|
|
1287
1285
|
[key: string]: any;
|
|
1288
1286
|
};
|
|
1287
|
+
/** Function for uploading files */
|
|
1289
1288
|
upload?: (file: File) => Promise<string>;
|
|
1290
1289
|
}
|
|
1291
1290
|
|
|
1292
|
-
declare interface VideoOptions_2 {
|
|
1293
|
-
upload?: (files: File[]) => void;
|
|
1294
|
-
}
|
|
1295
|
-
|
|
1296
|
-
export declare const VideoUpload: Node_2<VideoOptions_2, any>;
|
|
1297
|
-
|
|
1298
1291
|
export declare const zh_CN: {
|
|
1299
1292
|
'editor.remove': string;
|
|
1300
1293
|
'editor.copy': string;
|
|
@@ -1376,6 +1369,7 @@ export declare const zh_CN: {
|
|
|
1376
1369
|
'editor.image.dialog.title': string;
|
|
1377
1370
|
'editor.image.dialog.tab.url': string;
|
|
1378
1371
|
'editor.image.dialog.tab.upload': string;
|
|
1372
|
+
'editor.link.dialog.inline': string;
|
|
1379
1373
|
'editor.image.dialog.uploading': string;
|
|
1380
1374
|
'editor.image.dialog.form.link': string;
|
|
1381
1375
|
'editor.image.dialog.placeholder': string;
|
|
@@ -1497,26 +1491,6 @@ declare module '@tiptap/core' {
|
|
|
1497
1491
|
}
|
|
1498
1492
|
|
|
1499
1493
|
|
|
1500
|
-
declare module '@tiptap/core' {
|
|
1501
|
-
interface Commands<ReturnType> {
|
|
1502
|
-
imageResize: {
|
|
1503
|
-
/**
|
|
1504
|
-
* Add an image
|
|
1505
|
-
*/
|
|
1506
|
-
setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1507
|
-
/**
|
|
1508
|
-
* Update an image
|
|
1509
|
-
*/
|
|
1510
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1511
|
-
/**
|
|
1512
|
-
* Set image alignment
|
|
1513
|
-
*/
|
|
1514
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1515
|
-
};
|
|
1516
|
-
}
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
1494
|
declare module '@tiptap/core' {
|
|
1521
1495
|
interface Commands<ReturnType> {
|
|
1522
1496
|
lineHeight: {
|
|
@@ -1545,17 +1519,8 @@ declare module '@tiptap/core' {
|
|
|
1545
1519
|
|
|
1546
1520
|
declare module '@tiptap/core' {
|
|
1547
1521
|
interface Commands<ReturnType> {
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
};
|
|
1551
|
-
}
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
declare module '@tiptap/core' {
|
|
1556
|
-
interface Commands<ReturnType> {
|
|
1557
|
-
videoUpload: {
|
|
1558
|
-
setVideoUpload: () => ReturnType;
|
|
1522
|
+
painter: {
|
|
1523
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1559
1524
|
};
|
|
1560
1525
|
}
|
|
1561
1526
|
}
|
|
@@ -1587,8 +1552,19 @@ declare module '@tiptap/core' {
|
|
|
1587
1552
|
|
|
1588
1553
|
declare module '@tiptap/core' {
|
|
1589
1554
|
interface Commands<ReturnType> {
|
|
1590
|
-
|
|
1591
|
-
|
|
1555
|
+
imageResize: {
|
|
1556
|
+
/**
|
|
1557
|
+
* Add an image
|
|
1558
|
+
*/
|
|
1559
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1560
|
+
/**
|
|
1561
|
+
* Update an image
|
|
1562
|
+
*/
|
|
1563
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1564
|
+
/**
|
|
1565
|
+
* Set image alignment
|
|
1566
|
+
*/
|
|
1567
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1592
1568
|
};
|
|
1593
1569
|
}
|
|
1594
1570
|
}
|
|
@@ -1609,27 +1585,6 @@ declare module '@tiptap/core' {
|
|
|
1609
1585
|
}
|
|
1610
1586
|
|
|
1611
1587
|
|
|
1612
|
-
declare module '@tiptap/core' {
|
|
1613
|
-
interface Commands<ReturnType> {
|
|
1614
|
-
emoji: {
|
|
1615
|
-
setEmoji: (emoji: {
|
|
1616
|
-
name: string;
|
|
1617
|
-
emoji: string;
|
|
1618
|
-
}) => ReturnType;
|
|
1619
|
-
};
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
declare module '@tiptap/core' {
|
|
1625
|
-
interface Commands<ReturnType> {
|
|
1626
|
-
exportWord: {
|
|
1627
|
-
exportToWord: () => ReturnType;
|
|
1628
|
-
};
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
1588
|
declare module '@tiptap/core' {
|
|
1634
1589
|
interface Commands<ReturnType> {
|
|
1635
1590
|
search: {
|
|
@@ -1647,8 +1602,11 @@ declare module '@tiptap/core' {
|
|
|
1647
1602
|
|
|
1648
1603
|
declare module '@tiptap/core' {
|
|
1649
1604
|
interface Commands<ReturnType> {
|
|
1650
|
-
|
|
1651
|
-
|
|
1605
|
+
emoji: {
|
|
1606
|
+
setEmoji: (emoji: {
|
|
1607
|
+
name: string;
|
|
1608
|
+
emoji: string;
|
|
1609
|
+
}) => ReturnType;
|
|
1652
1610
|
};
|
|
1653
1611
|
}
|
|
1654
1612
|
}
|
|
@@ -1666,18 +1624,8 @@ declare module '@tiptap/core' {
|
|
|
1666
1624
|
|
|
1667
1625
|
declare module '@tiptap/core' {
|
|
1668
1626
|
interface Commands<ReturnType> {
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
};
|
|
1672
|
-
}
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
declare module '@tiptap/core' {
|
|
1677
|
-
interface Commands<ReturnType> {
|
|
1678
|
-
mermaid: {
|
|
1679
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1680
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1627
|
+
katex: {
|
|
1628
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1681
1629
|
};
|
|
1682
1630
|
}
|
|
1683
1631
|
}
|
|
@@ -1685,8 +1633,8 @@ declare module '@tiptap/core' {
|
|
|
1685
1633
|
|
|
1686
1634
|
declare module '@tiptap/core' {
|
|
1687
1635
|
interface Commands<ReturnType> {
|
|
1688
|
-
|
|
1689
|
-
|
|
1636
|
+
exportWord: {
|
|
1637
|
+
exportToWord: () => ReturnType;
|
|
1690
1638
|
};
|
|
1691
1639
|
}
|
|
1692
1640
|
}
|
|
@@ -1712,8 +1660,31 @@ declare module '@tiptap/core' {
|
|
|
1712
1660
|
}
|
|
1713
1661
|
|
|
1714
1662
|
|
|
1715
|
-
declare
|
|
1716
|
-
|
|
1663
|
+
declare module '@tiptap/core' {
|
|
1664
|
+
interface Commands<ReturnType> {
|
|
1665
|
+
attachment: {
|
|
1666
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1667
|
+
};
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
|
|
1672
|
+
declare module '@tiptap/core' {
|
|
1673
|
+
interface Commands<ReturnType> {
|
|
1674
|
+
mermaid: {
|
|
1675
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1676
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1677
|
+
};
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
|
|
1682
|
+
declare module '@tiptap/core' {
|
|
1683
|
+
interface Commands<ReturnType> {
|
|
1684
|
+
excalidraw: {
|
|
1685
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1686
|
+
};
|
|
1687
|
+
}
|
|
1717
1688
|
}
|
|
1718
1689
|
|
|
1719
1690
|
|
|
@@ -1725,3 +1696,8 @@ declare namespace DialogHeader {
|
|
|
1725
1696
|
declare namespace DialogFooter {
|
|
1726
1697
|
var displayName: string;
|
|
1727
1698
|
}
|
|
1699
|
+
|
|
1700
|
+
|
|
1701
|
+
declare namespace DropdownMenuShortcut {
|
|
1702
|
+
var displayName: string;
|
|
1703
|
+
}
|