reactjs-tiptap-editor-pro 0.2.25 → 0.2.27
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-B1Y3PPzy.js +8826 -0
- package/lib/RichTextEditor-CVJUZJ-8.cjs +141 -0
- package/lib/extension-bundle.cjs +3 -3
- package/lib/extension-bundle.d.cts +73 -73
- package/lib/extension-bundle.d.ts +73 -73
- package/lib/extension-bundle.js +1389 -1565
- package/lib/{index-D-rys8BA.cjs → index-DV-nXpU1.cjs} +1 -1
- package/lib/{index-PJxla8pp.js → index-M6H3FoBi.js} +5 -5
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +73 -73
- package/lib/index.d.ts +73 -73
- package/lib/index.js +2 -2
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +73 -73
- package/lib/locale-bundle.d.ts +73 -73
- package/lib/locale-bundle.js +1 -1
- package/lib/style.css +1 -1
- package/lib/{tiptap-Kst3Ray3.js → tiptap-DkWHMWDt.js} +57 -93
- package/lib/{tiptap-Bzsbnr3f.cjs → tiptap-gBG-1T-V.cjs} +11 -11
- package/lib/{vendor-LvbrNFNL.cjs → vendor-BJ0Yf78E.cjs} +4 -4
- package/lib/{vendor-tDefVoN_.js → vendor-Cpa6z-M0.js} +8 -7
- package/package.json +1 -1
- package/lib/RichTextEditor-Bxdp3pW3.js +0 -8292
- package/lib/RichTextEditor-zOI60NFQ.cjs +0 -141
|
@@ -737,15 +737,8 @@ declare module '@tiptap/core' {
|
|
|
737
737
|
|
|
738
738
|
declare module '@tiptap/core' {
|
|
739
739
|
interface Commands<ReturnType> {
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
* Set the indent attribute
|
|
743
|
-
*/
|
|
744
|
-
indent: () => ReturnType;
|
|
745
|
-
/**
|
|
746
|
-
* Set the outdent attribute
|
|
747
|
-
*/
|
|
748
|
-
outdent: () => ReturnType;
|
|
740
|
+
katex: {
|
|
741
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
749
742
|
};
|
|
750
743
|
}
|
|
751
744
|
}
|
|
@@ -753,19 +746,14 @@ declare module '@tiptap/core' {
|
|
|
753
746
|
|
|
754
747
|
declare module '@tiptap/core' {
|
|
755
748
|
interface Commands<ReturnType> {
|
|
756
|
-
|
|
757
|
-
/**
|
|
758
|
-
* Add an image
|
|
759
|
-
*/
|
|
760
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
761
|
-
/**
|
|
762
|
-
* Update an image
|
|
763
|
-
*/
|
|
764
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
749
|
+
iframe: {
|
|
765
750
|
/**
|
|
766
|
-
*
|
|
751
|
+
* Add an iframe
|
|
767
752
|
*/
|
|
768
|
-
|
|
753
|
+
setIframe: (options: {
|
|
754
|
+
src: string;
|
|
755
|
+
service: string;
|
|
756
|
+
}) => ReturnType;
|
|
769
757
|
};
|
|
770
758
|
}
|
|
771
759
|
}
|
|
@@ -773,9 +761,11 @@ declare module '@tiptap/core' {
|
|
|
773
761
|
|
|
774
762
|
declare module '@tiptap/core' {
|
|
775
763
|
interface Commands<ReturnType> {
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
764
|
+
emoji: {
|
|
765
|
+
setEmoji: (emoji: {
|
|
766
|
+
name: string;
|
|
767
|
+
emoji: string;
|
|
768
|
+
}) => ReturnType;
|
|
779
769
|
};
|
|
780
770
|
}
|
|
781
771
|
}
|
|
@@ -783,14 +773,8 @@ declare module '@tiptap/core' {
|
|
|
783
773
|
|
|
784
774
|
declare module '@tiptap/core' {
|
|
785
775
|
interface Commands<ReturnType> {
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
789
|
-
replace: () => ReturnType;
|
|
790
|
-
replaceAll: () => ReturnType;
|
|
791
|
-
goToPrevSearchResult: () => void;
|
|
792
|
-
goToNextSearchResult: () => void;
|
|
793
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
776
|
+
painter: {
|
|
777
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
794
778
|
};
|
|
795
779
|
}
|
|
796
780
|
}
|
|
@@ -798,13 +782,8 @@ declare module '@tiptap/core' {
|
|
|
798
782
|
|
|
799
783
|
declare module '@tiptap/core' {
|
|
800
784
|
interface Commands<ReturnType> {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
cols: number;
|
|
804
|
-
}) => ReturnType;
|
|
805
|
-
addColBefore: () => ReturnType;
|
|
806
|
-
addColAfter: () => ReturnType;
|
|
807
|
-
deleteCol: () => ReturnType;
|
|
785
|
+
exportWord: {
|
|
786
|
+
exportToWord: () => ReturnType;
|
|
808
787
|
};
|
|
809
788
|
}
|
|
810
789
|
}
|
|
@@ -812,8 +791,19 @@ declare module '@tiptap/core' {
|
|
|
812
791
|
|
|
813
792
|
declare module '@tiptap/core' {
|
|
814
793
|
interface Commands<ReturnType> {
|
|
815
|
-
|
|
816
|
-
|
|
794
|
+
imageUpload: {
|
|
795
|
+
/**
|
|
796
|
+
* Add an image
|
|
797
|
+
*/
|
|
798
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
799
|
+
/**
|
|
800
|
+
* Update an image
|
|
801
|
+
*/
|
|
802
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
803
|
+
/**
|
|
804
|
+
* Set image alignment
|
|
805
|
+
*/
|
|
806
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
817
807
|
};
|
|
818
808
|
}
|
|
819
809
|
}
|
|
@@ -821,8 +811,14 @@ declare module '@tiptap/core' {
|
|
|
821
811
|
|
|
822
812
|
declare module '@tiptap/core' {
|
|
823
813
|
interface Commands<ReturnType> {
|
|
824
|
-
|
|
825
|
-
|
|
814
|
+
search: {
|
|
815
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
816
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
817
|
+
replace: () => ReturnType;
|
|
818
|
+
replaceAll: () => ReturnType;
|
|
819
|
+
goToPrevSearchResult: () => void;
|
|
820
|
+
goToNextSearchResult: () => void;
|
|
821
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
826
822
|
};
|
|
827
823
|
}
|
|
828
824
|
}
|
|
@@ -830,11 +826,9 @@ declare module '@tiptap/core' {
|
|
|
830
826
|
|
|
831
827
|
declare module '@tiptap/core' {
|
|
832
828
|
interface Commands<ReturnType> {
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
emoji: string;
|
|
837
|
-
}) => ReturnType;
|
|
829
|
+
tableCellBackground: {
|
|
830
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
831
|
+
unsetTableCellBackground: () => ReturnType;
|
|
838
832
|
};
|
|
839
833
|
}
|
|
840
834
|
}
|
|
@@ -842,14 +836,15 @@ declare module '@tiptap/core' {
|
|
|
842
836
|
|
|
843
837
|
declare module '@tiptap/core' {
|
|
844
838
|
interface Commands<ReturnType> {
|
|
845
|
-
|
|
839
|
+
indent: {
|
|
846
840
|
/**
|
|
847
|
-
*
|
|
841
|
+
* Set the indent attribute
|
|
848
842
|
*/
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
843
|
+
indent: () => ReturnType;
|
|
844
|
+
/**
|
|
845
|
+
* Set the outdent attribute
|
|
846
|
+
*/
|
|
847
|
+
outdent: () => ReturnType;
|
|
853
848
|
};
|
|
854
849
|
}
|
|
855
850
|
}
|
|
@@ -857,8 +852,13 @@ declare module '@tiptap/core' {
|
|
|
857
852
|
|
|
858
853
|
declare module '@tiptap/core' {
|
|
859
854
|
interface Commands<ReturnType> {
|
|
860
|
-
|
|
861
|
-
|
|
855
|
+
columns: {
|
|
856
|
+
insertColumns: (attrs?: {
|
|
857
|
+
cols: number;
|
|
858
|
+
}) => ReturnType;
|
|
859
|
+
addColBefore: () => ReturnType;
|
|
860
|
+
addColAfter: () => ReturnType;
|
|
861
|
+
deleteCol: () => ReturnType;
|
|
862
862
|
};
|
|
863
863
|
}
|
|
864
864
|
}
|
|
@@ -866,9 +866,8 @@ declare module '@tiptap/core' {
|
|
|
866
866
|
|
|
867
867
|
declare module '@tiptap/core' {
|
|
868
868
|
interface Commands<ReturnType> {
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
removeTableOfContents: () => ReturnType;
|
|
869
|
+
excalidraw: {
|
|
870
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
872
871
|
};
|
|
873
872
|
}
|
|
874
873
|
}
|
|
@@ -876,8 +875,9 @@ declare module '@tiptap/core' {
|
|
|
876
875
|
|
|
877
876
|
declare module '@tiptap/core' {
|
|
878
877
|
interface Commands<ReturnType> {
|
|
879
|
-
|
|
880
|
-
|
|
878
|
+
tableOfContents: {
|
|
879
|
+
setTableOfContents: () => ReturnType;
|
|
880
|
+
removeTableOfContents: () => ReturnType;
|
|
881
881
|
};
|
|
882
882
|
}
|
|
883
883
|
}
|
|
@@ -905,9 +905,14 @@ declare module '@tiptap/core' {
|
|
|
905
905
|
|
|
906
906
|
declare module '@tiptap/core' {
|
|
907
907
|
interface Commands<ReturnType> {
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
908
|
+
twitter: {
|
|
909
|
+
/**
|
|
910
|
+
* Insert a tweet
|
|
911
|
+
* @param options The tweet attributes
|
|
912
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
913
|
+
*/
|
|
914
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
915
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
911
916
|
};
|
|
912
917
|
}
|
|
913
918
|
}
|
|
@@ -925,8 +930,9 @@ declare module '@tiptap/core' {
|
|
|
925
930
|
|
|
926
931
|
declare module '@tiptap/core' {
|
|
927
932
|
interface Commands<ReturnType> {
|
|
928
|
-
|
|
929
|
-
|
|
933
|
+
mermaid: {
|
|
934
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
935
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
930
936
|
};
|
|
931
937
|
}
|
|
932
938
|
}
|
|
@@ -934,14 +940,8 @@ declare module '@tiptap/core' {
|
|
|
934
940
|
|
|
935
941
|
declare module '@tiptap/core' {
|
|
936
942
|
interface Commands<ReturnType> {
|
|
937
|
-
|
|
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;
|
|
943
|
+
attachment: {
|
|
944
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
}
|
|
@@ -737,15 +737,8 @@ declare module '@tiptap/core' {
|
|
|
737
737
|
|
|
738
738
|
declare module '@tiptap/core' {
|
|
739
739
|
interface Commands<ReturnType> {
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
* Set the indent attribute
|
|
743
|
-
*/
|
|
744
|
-
indent: () => ReturnType;
|
|
745
|
-
/**
|
|
746
|
-
* Set the outdent attribute
|
|
747
|
-
*/
|
|
748
|
-
outdent: () => ReturnType;
|
|
740
|
+
katex: {
|
|
741
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
749
742
|
};
|
|
750
743
|
}
|
|
751
744
|
}
|
|
@@ -753,19 +746,14 @@ declare module '@tiptap/core' {
|
|
|
753
746
|
|
|
754
747
|
declare module '@tiptap/core' {
|
|
755
748
|
interface Commands<ReturnType> {
|
|
756
|
-
|
|
757
|
-
/**
|
|
758
|
-
* Add an image
|
|
759
|
-
*/
|
|
760
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
761
|
-
/**
|
|
762
|
-
* Update an image
|
|
763
|
-
*/
|
|
764
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
749
|
+
iframe: {
|
|
765
750
|
/**
|
|
766
|
-
*
|
|
751
|
+
* Add an iframe
|
|
767
752
|
*/
|
|
768
|
-
|
|
753
|
+
setIframe: (options: {
|
|
754
|
+
src: string;
|
|
755
|
+
service: string;
|
|
756
|
+
}) => ReturnType;
|
|
769
757
|
};
|
|
770
758
|
}
|
|
771
759
|
}
|
|
@@ -773,9 +761,11 @@ declare module '@tiptap/core' {
|
|
|
773
761
|
|
|
774
762
|
declare module '@tiptap/core' {
|
|
775
763
|
interface Commands<ReturnType> {
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
764
|
+
emoji: {
|
|
765
|
+
setEmoji: (emoji: {
|
|
766
|
+
name: string;
|
|
767
|
+
emoji: string;
|
|
768
|
+
}) => ReturnType;
|
|
779
769
|
};
|
|
780
770
|
}
|
|
781
771
|
}
|
|
@@ -783,14 +773,8 @@ declare module '@tiptap/core' {
|
|
|
783
773
|
|
|
784
774
|
declare module '@tiptap/core' {
|
|
785
775
|
interface Commands<ReturnType> {
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
789
|
-
replace: () => ReturnType;
|
|
790
|
-
replaceAll: () => ReturnType;
|
|
791
|
-
goToPrevSearchResult: () => void;
|
|
792
|
-
goToNextSearchResult: () => void;
|
|
793
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
776
|
+
painter: {
|
|
777
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
794
778
|
};
|
|
795
779
|
}
|
|
796
780
|
}
|
|
@@ -798,13 +782,8 @@ declare module '@tiptap/core' {
|
|
|
798
782
|
|
|
799
783
|
declare module '@tiptap/core' {
|
|
800
784
|
interface Commands<ReturnType> {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
cols: number;
|
|
804
|
-
}) => ReturnType;
|
|
805
|
-
addColBefore: () => ReturnType;
|
|
806
|
-
addColAfter: () => ReturnType;
|
|
807
|
-
deleteCol: () => ReturnType;
|
|
785
|
+
exportWord: {
|
|
786
|
+
exportToWord: () => ReturnType;
|
|
808
787
|
};
|
|
809
788
|
}
|
|
810
789
|
}
|
|
@@ -812,8 +791,19 @@ declare module '@tiptap/core' {
|
|
|
812
791
|
|
|
813
792
|
declare module '@tiptap/core' {
|
|
814
793
|
interface Commands<ReturnType> {
|
|
815
|
-
|
|
816
|
-
|
|
794
|
+
imageUpload: {
|
|
795
|
+
/**
|
|
796
|
+
* Add an image
|
|
797
|
+
*/
|
|
798
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
799
|
+
/**
|
|
800
|
+
* Update an image
|
|
801
|
+
*/
|
|
802
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
803
|
+
/**
|
|
804
|
+
* Set image alignment
|
|
805
|
+
*/
|
|
806
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
817
807
|
};
|
|
818
808
|
}
|
|
819
809
|
}
|
|
@@ -821,8 +811,14 @@ declare module '@tiptap/core' {
|
|
|
821
811
|
|
|
822
812
|
declare module '@tiptap/core' {
|
|
823
813
|
interface Commands<ReturnType> {
|
|
824
|
-
|
|
825
|
-
|
|
814
|
+
search: {
|
|
815
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
816
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
817
|
+
replace: () => ReturnType;
|
|
818
|
+
replaceAll: () => ReturnType;
|
|
819
|
+
goToPrevSearchResult: () => void;
|
|
820
|
+
goToNextSearchResult: () => void;
|
|
821
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
826
822
|
};
|
|
827
823
|
}
|
|
828
824
|
}
|
|
@@ -830,11 +826,9 @@ declare module '@tiptap/core' {
|
|
|
830
826
|
|
|
831
827
|
declare module '@tiptap/core' {
|
|
832
828
|
interface Commands<ReturnType> {
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
emoji: string;
|
|
837
|
-
}) => ReturnType;
|
|
829
|
+
tableCellBackground: {
|
|
830
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
831
|
+
unsetTableCellBackground: () => ReturnType;
|
|
838
832
|
};
|
|
839
833
|
}
|
|
840
834
|
}
|
|
@@ -842,14 +836,15 @@ declare module '@tiptap/core' {
|
|
|
842
836
|
|
|
843
837
|
declare module '@tiptap/core' {
|
|
844
838
|
interface Commands<ReturnType> {
|
|
845
|
-
|
|
839
|
+
indent: {
|
|
846
840
|
/**
|
|
847
|
-
*
|
|
841
|
+
* Set the indent attribute
|
|
848
842
|
*/
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
843
|
+
indent: () => ReturnType;
|
|
844
|
+
/**
|
|
845
|
+
* Set the outdent attribute
|
|
846
|
+
*/
|
|
847
|
+
outdent: () => ReturnType;
|
|
853
848
|
};
|
|
854
849
|
}
|
|
855
850
|
}
|
|
@@ -857,8 +852,13 @@ declare module '@tiptap/core' {
|
|
|
857
852
|
|
|
858
853
|
declare module '@tiptap/core' {
|
|
859
854
|
interface Commands<ReturnType> {
|
|
860
|
-
|
|
861
|
-
|
|
855
|
+
columns: {
|
|
856
|
+
insertColumns: (attrs?: {
|
|
857
|
+
cols: number;
|
|
858
|
+
}) => ReturnType;
|
|
859
|
+
addColBefore: () => ReturnType;
|
|
860
|
+
addColAfter: () => ReturnType;
|
|
861
|
+
deleteCol: () => ReturnType;
|
|
862
862
|
};
|
|
863
863
|
}
|
|
864
864
|
}
|
|
@@ -866,9 +866,8 @@ declare module '@tiptap/core' {
|
|
|
866
866
|
|
|
867
867
|
declare module '@tiptap/core' {
|
|
868
868
|
interface Commands<ReturnType> {
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
removeTableOfContents: () => ReturnType;
|
|
869
|
+
excalidraw: {
|
|
870
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
872
871
|
};
|
|
873
872
|
}
|
|
874
873
|
}
|
|
@@ -876,8 +875,9 @@ declare module '@tiptap/core' {
|
|
|
876
875
|
|
|
877
876
|
declare module '@tiptap/core' {
|
|
878
877
|
interface Commands<ReturnType> {
|
|
879
|
-
|
|
880
|
-
|
|
878
|
+
tableOfContents: {
|
|
879
|
+
setTableOfContents: () => ReturnType;
|
|
880
|
+
removeTableOfContents: () => ReturnType;
|
|
881
881
|
};
|
|
882
882
|
}
|
|
883
883
|
}
|
|
@@ -905,9 +905,14 @@ declare module '@tiptap/core' {
|
|
|
905
905
|
|
|
906
906
|
declare module '@tiptap/core' {
|
|
907
907
|
interface Commands<ReturnType> {
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
908
|
+
twitter: {
|
|
909
|
+
/**
|
|
910
|
+
* Insert a tweet
|
|
911
|
+
* @param options The tweet attributes
|
|
912
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
913
|
+
*/
|
|
914
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
915
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
911
916
|
};
|
|
912
917
|
}
|
|
913
918
|
}
|
|
@@ -925,8 +930,9 @@ declare module '@tiptap/core' {
|
|
|
925
930
|
|
|
926
931
|
declare module '@tiptap/core' {
|
|
927
932
|
interface Commands<ReturnType> {
|
|
928
|
-
|
|
929
|
-
|
|
933
|
+
mermaid: {
|
|
934
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
935
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
930
936
|
};
|
|
931
937
|
}
|
|
932
938
|
}
|
|
@@ -934,14 +940,8 @@ declare module '@tiptap/core' {
|
|
|
934
940
|
|
|
935
941
|
declare module '@tiptap/core' {
|
|
936
942
|
interface Commands<ReturnType> {
|
|
937
|
-
|
|
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;
|
|
943
|
+
attachment: {
|
|
944
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
}
|