reactjs-tiptap-editor-pro 0.2.24 → 0.2.25
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/extension-bundle.d.cts +70 -70
- package/lib/extension-bundle.d.ts +70 -70
- package/lib/index.d.cts +70 -70
- package/lib/index.d.ts +70 -70
- package/lib/locale-bundle.d.cts +70 -70
- package/lib/locale-bundle.d.ts +70 -70
- package/lib/style.css +1 -0
- package/package.json +1 -1
- package/lib/reactjs-tiptap-editor-pro.css +0 -1
|
@@ -725,6 +725,32 @@ declare module '@tiptap/core' {
|
|
|
725
725
|
}
|
|
726
726
|
|
|
727
727
|
|
|
728
|
+
declare module '@tiptap/core' {
|
|
729
|
+
interface Commands<ReturnType> {
|
|
730
|
+
lineHeight: {
|
|
731
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
732
|
+
unsetLineHeight: () => ReturnType;
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
declare module '@tiptap/core' {
|
|
739
|
+
interface Commands<ReturnType> {
|
|
740
|
+
indent: {
|
|
741
|
+
/**
|
|
742
|
+
* Set the indent attribute
|
|
743
|
+
*/
|
|
744
|
+
indent: () => ReturnType;
|
|
745
|
+
/**
|
|
746
|
+
* Set the outdent attribute
|
|
747
|
+
*/
|
|
748
|
+
outdent: () => ReturnType;
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
|
|
728
754
|
declare module '@tiptap/core' {
|
|
729
755
|
interface Commands<ReturnType> {
|
|
730
756
|
imageUpload: {
|
|
@@ -747,14 +773,9 @@ declare module '@tiptap/core' {
|
|
|
747
773
|
|
|
748
774
|
declare module '@tiptap/core' {
|
|
749
775
|
interface Commands<ReturnType> {
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
*/
|
|
754
|
-
setIframe: (options: {
|
|
755
|
-
src: string;
|
|
756
|
-
service: string;
|
|
757
|
-
}) => ReturnType;
|
|
776
|
+
tableCellBackground: {
|
|
777
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
778
|
+
unsetTableCellBackground: () => ReturnType;
|
|
758
779
|
};
|
|
759
780
|
}
|
|
760
781
|
}
|
|
@@ -777,8 +798,13 @@ declare module '@tiptap/core' {
|
|
|
777
798
|
|
|
778
799
|
declare module '@tiptap/core' {
|
|
779
800
|
interface Commands<ReturnType> {
|
|
780
|
-
|
|
781
|
-
|
|
801
|
+
columns: {
|
|
802
|
+
insertColumns: (attrs?: {
|
|
803
|
+
cols: number;
|
|
804
|
+
}) => ReturnType;
|
|
805
|
+
addColBefore: () => ReturnType;
|
|
806
|
+
addColAfter: () => ReturnType;
|
|
807
|
+
deleteCol: () => ReturnType;
|
|
782
808
|
};
|
|
783
809
|
}
|
|
784
810
|
}
|
|
@@ -786,9 +812,8 @@ declare module '@tiptap/core' {
|
|
|
786
812
|
|
|
787
813
|
declare module '@tiptap/core' {
|
|
788
814
|
interface Commands<ReturnType> {
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
unsetTableCellBackground: () => ReturnType;
|
|
815
|
+
painter: {
|
|
816
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
792
817
|
};
|
|
793
818
|
}
|
|
794
819
|
}
|
|
@@ -796,15 +821,8 @@ declare module '@tiptap/core' {
|
|
|
796
821
|
|
|
797
822
|
declare module '@tiptap/core' {
|
|
798
823
|
interface Commands<ReturnType> {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
* Set the indent attribute
|
|
802
|
-
*/
|
|
803
|
-
indent: () => ReturnType;
|
|
804
|
-
/**
|
|
805
|
-
* Set the outdent attribute
|
|
806
|
-
*/
|
|
807
|
-
outdent: () => ReturnType;
|
|
824
|
+
katex: {
|
|
825
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
808
826
|
};
|
|
809
827
|
}
|
|
810
828
|
}
|
|
@@ -824,23 +842,14 @@ declare module '@tiptap/core' {
|
|
|
824
842
|
|
|
825
843
|
declare module '@tiptap/core' {
|
|
826
844
|
interface Commands<ReturnType> {
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
845
|
+
iframe: {
|
|
846
|
+
/**
|
|
847
|
+
* Add an iframe
|
|
848
|
+
*/
|
|
849
|
+
setIframe: (options: {
|
|
850
|
+
src: string;
|
|
851
|
+
service: string;
|
|
830
852
|
}) => ReturnType;
|
|
831
|
-
addColBefore: () => ReturnType;
|
|
832
|
-
addColAfter: () => ReturnType;
|
|
833
|
-
deleteCol: () => ReturnType;
|
|
834
|
-
};
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
declare module '@tiptap/core' {
|
|
840
|
-
interface Commands<ReturnType> {
|
|
841
|
-
lineHeight: {
|
|
842
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
843
|
-
unsetLineHeight: () => ReturnType;
|
|
844
853
|
};
|
|
845
854
|
}
|
|
846
855
|
}
|
|
@@ -848,23 +857,8 @@ declare module '@tiptap/core' {
|
|
|
848
857
|
|
|
849
858
|
declare module '@tiptap/core' {
|
|
850
859
|
interface Commands<ReturnType> {
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
};
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
declare module '@tiptap/core' {
|
|
859
|
-
interface Commands<ReturnType> {
|
|
860
|
-
twitter: {
|
|
861
|
-
/**
|
|
862
|
-
* Insert a tweet
|
|
863
|
-
* @param options The tweet attributes
|
|
864
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
865
|
-
*/
|
|
866
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
867
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
860
|
+
exportWord: {
|
|
861
|
+
exportToWord: () => ReturnType;
|
|
868
862
|
};
|
|
869
863
|
}
|
|
870
864
|
}
|
|
@@ -872,8 +866,9 @@ declare module '@tiptap/core' {
|
|
|
872
866
|
|
|
873
867
|
declare module '@tiptap/core' {
|
|
874
868
|
interface Commands<ReturnType> {
|
|
875
|
-
|
|
876
|
-
|
|
869
|
+
tableOfContents: {
|
|
870
|
+
setTableOfContents: () => ReturnType;
|
|
871
|
+
removeTableOfContents: () => ReturnType;
|
|
877
872
|
};
|
|
878
873
|
}
|
|
879
874
|
}
|
|
@@ -881,9 +876,8 @@ declare module '@tiptap/core' {
|
|
|
881
876
|
|
|
882
877
|
declare module '@tiptap/core' {
|
|
883
878
|
interface Commands<ReturnType> {
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
879
|
+
excalidraw: {
|
|
880
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
887
881
|
};
|
|
888
882
|
}
|
|
889
883
|
}
|
|
@@ -911,8 +905,9 @@ declare module '@tiptap/core' {
|
|
|
911
905
|
|
|
912
906
|
declare module '@tiptap/core' {
|
|
913
907
|
interface Commands<ReturnType> {
|
|
914
|
-
|
|
915
|
-
|
|
908
|
+
mermaid: {
|
|
909
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
910
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
916
911
|
};
|
|
917
912
|
}
|
|
918
913
|
}
|
|
@@ -920,9 +915,9 @@ declare module '@tiptap/core' {
|
|
|
920
915
|
|
|
921
916
|
declare module '@tiptap/core' {
|
|
922
917
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
918
|
+
drawer: {
|
|
919
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
920
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
926
921
|
};
|
|
927
922
|
}
|
|
928
923
|
}
|
|
@@ -930,9 +925,8 @@ declare module '@tiptap/core' {
|
|
|
930
925
|
|
|
931
926
|
declare module '@tiptap/core' {
|
|
932
927
|
interface Commands<ReturnType> {
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
928
|
+
attachment: {
|
|
929
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
936
930
|
};
|
|
937
931
|
}
|
|
938
932
|
}
|
|
@@ -940,8 +934,14 @@ declare module '@tiptap/core' {
|
|
|
940
934
|
|
|
941
935
|
declare module '@tiptap/core' {
|
|
942
936
|
interface Commands<ReturnType> {
|
|
943
|
-
|
|
944
|
-
|
|
937
|
+
twitter: {
|
|
938
|
+
/**
|
|
939
|
+
* Insert a tweet
|
|
940
|
+
* @param options The tweet attributes
|
|
941
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
942
|
+
*/
|
|
943
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
944
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
}
|
|
@@ -725,6 +725,32 @@ declare module '@tiptap/core' {
|
|
|
725
725
|
}
|
|
726
726
|
|
|
727
727
|
|
|
728
|
+
declare module '@tiptap/core' {
|
|
729
|
+
interface Commands<ReturnType> {
|
|
730
|
+
lineHeight: {
|
|
731
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
732
|
+
unsetLineHeight: () => ReturnType;
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
declare module '@tiptap/core' {
|
|
739
|
+
interface Commands<ReturnType> {
|
|
740
|
+
indent: {
|
|
741
|
+
/**
|
|
742
|
+
* Set the indent attribute
|
|
743
|
+
*/
|
|
744
|
+
indent: () => ReturnType;
|
|
745
|
+
/**
|
|
746
|
+
* Set the outdent attribute
|
|
747
|
+
*/
|
|
748
|
+
outdent: () => ReturnType;
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
|
|
728
754
|
declare module '@tiptap/core' {
|
|
729
755
|
interface Commands<ReturnType> {
|
|
730
756
|
imageUpload: {
|
|
@@ -747,14 +773,9 @@ declare module '@tiptap/core' {
|
|
|
747
773
|
|
|
748
774
|
declare module '@tiptap/core' {
|
|
749
775
|
interface Commands<ReturnType> {
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
*/
|
|
754
|
-
setIframe: (options: {
|
|
755
|
-
src: string;
|
|
756
|
-
service: string;
|
|
757
|
-
}) => ReturnType;
|
|
776
|
+
tableCellBackground: {
|
|
777
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
778
|
+
unsetTableCellBackground: () => ReturnType;
|
|
758
779
|
};
|
|
759
780
|
}
|
|
760
781
|
}
|
|
@@ -777,8 +798,13 @@ declare module '@tiptap/core' {
|
|
|
777
798
|
|
|
778
799
|
declare module '@tiptap/core' {
|
|
779
800
|
interface Commands<ReturnType> {
|
|
780
|
-
|
|
781
|
-
|
|
801
|
+
columns: {
|
|
802
|
+
insertColumns: (attrs?: {
|
|
803
|
+
cols: number;
|
|
804
|
+
}) => ReturnType;
|
|
805
|
+
addColBefore: () => ReturnType;
|
|
806
|
+
addColAfter: () => ReturnType;
|
|
807
|
+
deleteCol: () => ReturnType;
|
|
782
808
|
};
|
|
783
809
|
}
|
|
784
810
|
}
|
|
@@ -786,9 +812,8 @@ declare module '@tiptap/core' {
|
|
|
786
812
|
|
|
787
813
|
declare module '@tiptap/core' {
|
|
788
814
|
interface Commands<ReturnType> {
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
unsetTableCellBackground: () => ReturnType;
|
|
815
|
+
painter: {
|
|
816
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
792
817
|
};
|
|
793
818
|
}
|
|
794
819
|
}
|
|
@@ -796,15 +821,8 @@ declare module '@tiptap/core' {
|
|
|
796
821
|
|
|
797
822
|
declare module '@tiptap/core' {
|
|
798
823
|
interface Commands<ReturnType> {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
* Set the indent attribute
|
|
802
|
-
*/
|
|
803
|
-
indent: () => ReturnType;
|
|
804
|
-
/**
|
|
805
|
-
* Set the outdent attribute
|
|
806
|
-
*/
|
|
807
|
-
outdent: () => ReturnType;
|
|
824
|
+
katex: {
|
|
825
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
808
826
|
};
|
|
809
827
|
}
|
|
810
828
|
}
|
|
@@ -824,23 +842,14 @@ declare module '@tiptap/core' {
|
|
|
824
842
|
|
|
825
843
|
declare module '@tiptap/core' {
|
|
826
844
|
interface Commands<ReturnType> {
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
845
|
+
iframe: {
|
|
846
|
+
/**
|
|
847
|
+
* Add an iframe
|
|
848
|
+
*/
|
|
849
|
+
setIframe: (options: {
|
|
850
|
+
src: string;
|
|
851
|
+
service: string;
|
|
830
852
|
}) => ReturnType;
|
|
831
|
-
addColBefore: () => ReturnType;
|
|
832
|
-
addColAfter: () => ReturnType;
|
|
833
|
-
deleteCol: () => ReturnType;
|
|
834
|
-
};
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
declare module '@tiptap/core' {
|
|
840
|
-
interface Commands<ReturnType> {
|
|
841
|
-
lineHeight: {
|
|
842
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
843
|
-
unsetLineHeight: () => ReturnType;
|
|
844
853
|
};
|
|
845
854
|
}
|
|
846
855
|
}
|
|
@@ -848,23 +857,8 @@ declare module '@tiptap/core' {
|
|
|
848
857
|
|
|
849
858
|
declare module '@tiptap/core' {
|
|
850
859
|
interface Commands<ReturnType> {
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
};
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
declare module '@tiptap/core' {
|
|
859
|
-
interface Commands<ReturnType> {
|
|
860
|
-
twitter: {
|
|
861
|
-
/**
|
|
862
|
-
* Insert a tweet
|
|
863
|
-
* @param options The tweet attributes
|
|
864
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
865
|
-
*/
|
|
866
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
867
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
860
|
+
exportWord: {
|
|
861
|
+
exportToWord: () => ReturnType;
|
|
868
862
|
};
|
|
869
863
|
}
|
|
870
864
|
}
|
|
@@ -872,8 +866,9 @@ declare module '@tiptap/core' {
|
|
|
872
866
|
|
|
873
867
|
declare module '@tiptap/core' {
|
|
874
868
|
interface Commands<ReturnType> {
|
|
875
|
-
|
|
876
|
-
|
|
869
|
+
tableOfContents: {
|
|
870
|
+
setTableOfContents: () => ReturnType;
|
|
871
|
+
removeTableOfContents: () => ReturnType;
|
|
877
872
|
};
|
|
878
873
|
}
|
|
879
874
|
}
|
|
@@ -881,9 +876,8 @@ declare module '@tiptap/core' {
|
|
|
881
876
|
|
|
882
877
|
declare module '@tiptap/core' {
|
|
883
878
|
interface Commands<ReturnType> {
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
879
|
+
excalidraw: {
|
|
880
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
887
881
|
};
|
|
888
882
|
}
|
|
889
883
|
}
|
|
@@ -911,8 +905,9 @@ declare module '@tiptap/core' {
|
|
|
911
905
|
|
|
912
906
|
declare module '@tiptap/core' {
|
|
913
907
|
interface Commands<ReturnType> {
|
|
914
|
-
|
|
915
|
-
|
|
908
|
+
mermaid: {
|
|
909
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
910
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
916
911
|
};
|
|
917
912
|
}
|
|
918
913
|
}
|
|
@@ -920,9 +915,9 @@ declare module '@tiptap/core' {
|
|
|
920
915
|
|
|
921
916
|
declare module '@tiptap/core' {
|
|
922
917
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
918
|
+
drawer: {
|
|
919
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
920
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
926
921
|
};
|
|
927
922
|
}
|
|
928
923
|
}
|
|
@@ -930,9 +925,8 @@ declare module '@tiptap/core' {
|
|
|
930
925
|
|
|
931
926
|
declare module '@tiptap/core' {
|
|
932
927
|
interface Commands<ReturnType> {
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
928
|
+
attachment: {
|
|
929
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
936
930
|
};
|
|
937
931
|
}
|
|
938
932
|
}
|
|
@@ -940,8 +934,14 @@ declare module '@tiptap/core' {
|
|
|
940
934
|
|
|
941
935
|
declare module '@tiptap/core' {
|
|
942
936
|
interface Commands<ReturnType> {
|
|
943
|
-
|
|
944
|
-
|
|
937
|
+
twitter: {
|
|
938
|
+
/**
|
|
939
|
+
* Insert a tweet
|
|
940
|
+
* @param options The tweet attributes
|
|
941
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
942
|
+
*/
|
|
943
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
944
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
}
|
package/lib/index.d.cts
CHANGED
|
@@ -289,6 +289,32 @@ declare module '@tiptap/core' {
|
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
|
|
292
|
+
declare module '@tiptap/core' {
|
|
293
|
+
interface Commands<ReturnType> {
|
|
294
|
+
lineHeight: {
|
|
295
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
296
|
+
unsetLineHeight: () => ReturnType;
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
declare module '@tiptap/core' {
|
|
303
|
+
interface Commands<ReturnType> {
|
|
304
|
+
indent: {
|
|
305
|
+
/**
|
|
306
|
+
* Set the indent attribute
|
|
307
|
+
*/
|
|
308
|
+
indent: () => ReturnType;
|
|
309
|
+
/**
|
|
310
|
+
* Set the outdent attribute
|
|
311
|
+
*/
|
|
312
|
+
outdent: () => ReturnType;
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
|
|
292
318
|
declare module '@tiptap/core' {
|
|
293
319
|
interface Commands<ReturnType> {
|
|
294
320
|
imageUpload: {
|
|
@@ -311,14 +337,9 @@ declare module '@tiptap/core' {
|
|
|
311
337
|
|
|
312
338
|
declare module '@tiptap/core' {
|
|
313
339
|
interface Commands<ReturnType> {
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
*/
|
|
318
|
-
setIframe: (options: {
|
|
319
|
-
src: string;
|
|
320
|
-
service: string;
|
|
321
|
-
}) => ReturnType;
|
|
340
|
+
tableCellBackground: {
|
|
341
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
342
|
+
unsetTableCellBackground: () => ReturnType;
|
|
322
343
|
};
|
|
323
344
|
}
|
|
324
345
|
}
|
|
@@ -341,8 +362,13 @@ declare module '@tiptap/core' {
|
|
|
341
362
|
|
|
342
363
|
declare module '@tiptap/core' {
|
|
343
364
|
interface Commands<ReturnType> {
|
|
344
|
-
|
|
345
|
-
|
|
365
|
+
columns: {
|
|
366
|
+
insertColumns: (attrs?: {
|
|
367
|
+
cols: number;
|
|
368
|
+
}) => ReturnType;
|
|
369
|
+
addColBefore: () => ReturnType;
|
|
370
|
+
addColAfter: () => ReturnType;
|
|
371
|
+
deleteCol: () => ReturnType;
|
|
346
372
|
};
|
|
347
373
|
}
|
|
348
374
|
}
|
|
@@ -350,9 +376,8 @@ declare module '@tiptap/core' {
|
|
|
350
376
|
|
|
351
377
|
declare module '@tiptap/core' {
|
|
352
378
|
interface Commands<ReturnType> {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
unsetTableCellBackground: () => ReturnType;
|
|
379
|
+
painter: {
|
|
380
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
356
381
|
};
|
|
357
382
|
}
|
|
358
383
|
}
|
|
@@ -360,15 +385,8 @@ declare module '@tiptap/core' {
|
|
|
360
385
|
|
|
361
386
|
declare module '@tiptap/core' {
|
|
362
387
|
interface Commands<ReturnType> {
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
* Set the indent attribute
|
|
366
|
-
*/
|
|
367
|
-
indent: () => ReturnType;
|
|
368
|
-
/**
|
|
369
|
-
* Set the outdent attribute
|
|
370
|
-
*/
|
|
371
|
-
outdent: () => ReturnType;
|
|
388
|
+
katex: {
|
|
389
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
372
390
|
};
|
|
373
391
|
}
|
|
374
392
|
}
|
|
@@ -388,23 +406,14 @@ declare module '@tiptap/core' {
|
|
|
388
406
|
|
|
389
407
|
declare module '@tiptap/core' {
|
|
390
408
|
interface Commands<ReturnType> {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
409
|
+
iframe: {
|
|
410
|
+
/**
|
|
411
|
+
* Add an iframe
|
|
412
|
+
*/
|
|
413
|
+
setIframe: (options: {
|
|
414
|
+
src: string;
|
|
415
|
+
service: string;
|
|
394
416
|
}) => ReturnType;
|
|
395
|
-
addColBefore: () => ReturnType;
|
|
396
|
-
addColAfter: () => ReturnType;
|
|
397
|
-
deleteCol: () => ReturnType;
|
|
398
|
-
};
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
declare module '@tiptap/core' {
|
|
404
|
-
interface Commands<ReturnType> {
|
|
405
|
-
lineHeight: {
|
|
406
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
407
|
-
unsetLineHeight: () => ReturnType;
|
|
408
417
|
};
|
|
409
418
|
}
|
|
410
419
|
}
|
|
@@ -412,23 +421,8 @@ declare module '@tiptap/core' {
|
|
|
412
421
|
|
|
413
422
|
declare module '@tiptap/core' {
|
|
414
423
|
interface Commands<ReturnType> {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
};
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
declare module '@tiptap/core' {
|
|
423
|
-
interface Commands<ReturnType> {
|
|
424
|
-
twitter: {
|
|
425
|
-
/**
|
|
426
|
-
* Insert a tweet
|
|
427
|
-
* @param options The tweet attributes
|
|
428
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
429
|
-
*/
|
|
430
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
431
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
424
|
+
exportWord: {
|
|
425
|
+
exportToWord: () => ReturnType;
|
|
432
426
|
};
|
|
433
427
|
}
|
|
434
428
|
}
|
|
@@ -436,8 +430,9 @@ declare module '@tiptap/core' {
|
|
|
436
430
|
|
|
437
431
|
declare module '@tiptap/core' {
|
|
438
432
|
interface Commands<ReturnType> {
|
|
439
|
-
|
|
440
|
-
|
|
433
|
+
tableOfContents: {
|
|
434
|
+
setTableOfContents: () => ReturnType;
|
|
435
|
+
removeTableOfContents: () => ReturnType;
|
|
441
436
|
};
|
|
442
437
|
}
|
|
443
438
|
}
|
|
@@ -445,9 +440,8 @@ declare module '@tiptap/core' {
|
|
|
445
440
|
|
|
446
441
|
declare module '@tiptap/core' {
|
|
447
442
|
interface Commands<ReturnType> {
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
443
|
+
excalidraw: {
|
|
444
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
451
445
|
};
|
|
452
446
|
}
|
|
453
447
|
}
|
|
@@ -475,8 +469,9 @@ declare module '@tiptap/core' {
|
|
|
475
469
|
|
|
476
470
|
declare module '@tiptap/core' {
|
|
477
471
|
interface Commands<ReturnType> {
|
|
478
|
-
|
|
479
|
-
|
|
472
|
+
mermaid: {
|
|
473
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
474
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
480
475
|
};
|
|
481
476
|
}
|
|
482
477
|
}
|
|
@@ -484,9 +479,9 @@ declare module '@tiptap/core' {
|
|
|
484
479
|
|
|
485
480
|
declare module '@tiptap/core' {
|
|
486
481
|
interface Commands<ReturnType> {
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
482
|
+
drawer: {
|
|
483
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
484
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
490
485
|
};
|
|
491
486
|
}
|
|
492
487
|
}
|
|
@@ -494,9 +489,8 @@ declare module '@tiptap/core' {
|
|
|
494
489
|
|
|
495
490
|
declare module '@tiptap/core' {
|
|
496
491
|
interface Commands<ReturnType> {
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
492
|
+
attachment: {
|
|
493
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
500
494
|
};
|
|
501
495
|
}
|
|
502
496
|
}
|
|
@@ -504,8 +498,14 @@ declare module '@tiptap/core' {
|
|
|
504
498
|
|
|
505
499
|
declare module '@tiptap/core' {
|
|
506
500
|
interface Commands<ReturnType> {
|
|
507
|
-
|
|
508
|
-
|
|
501
|
+
twitter: {
|
|
502
|
+
/**
|
|
503
|
+
* Insert a tweet
|
|
504
|
+
* @param options The tweet attributes
|
|
505
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
506
|
+
*/
|
|
507
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
508
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
511
|
}
|