reactjs-tiptap-editor-pro 0.2.37 → 0.2.39

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.
@@ -707,19 +707,17 @@ declare module '@tiptap/core' {
707
707
 
708
708
  declare module '@tiptap/core' {
709
709
  interface Commands<ReturnType> {
710
- imageUpload: {
711
- /**
712
- * Add an image
713
- */
714
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
710
+ fontSize: {
715
711
  /**
716
- * Update an image
712
+ * Set the text font size. ex: "12px", "2em", or "small". Must be a valid
713
+ * CSS font-size
714
+ * (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
717
715
  */
718
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
716
+ setFontSize: (fontSize: string) => ReturnType;
719
717
  /**
720
- * Set image alignment
718
+ * Unset the font size
721
719
  */
722
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
720
+ unsetFontSize: () => ReturnType;
723
721
  };
724
722
  }
725
723
  }
@@ -727,14 +725,9 @@ declare module '@tiptap/core' {
727
725
 
728
726
  declare module '@tiptap/core' {
729
727
  interface Commands<ReturnType> {
730
- iframe: {
731
- /**
732
- * Add an iframe
733
- */
734
- setIframe: (options: {
735
- src: string;
736
- service: string;
737
- }) => ReturnType;
728
+ tableCellBackground: {
729
+ setTableCellBackground: (color: string) => ReturnType;
730
+ unsetTableCellBackground: () => ReturnType;
738
731
  };
739
732
  }
740
733
  }
@@ -742,15 +735,14 @@ declare module '@tiptap/core' {
742
735
 
743
736
  declare module '@tiptap/core' {
744
737
  interface Commands<ReturnType> {
745
- indent: {
746
- /**
747
- * Set the indent attribute
748
- */
749
- indent: () => ReturnType;
738
+ iframe: {
750
739
  /**
751
- * Set the outdent attribute
740
+ * Add an iframe
752
741
  */
753
- outdent: () => ReturnType;
742
+ setIframe: (options: {
743
+ src: string;
744
+ service: string;
745
+ }) => ReturnType;
754
746
  };
755
747
  }
756
748
  }
@@ -758,9 +750,8 @@ declare module '@tiptap/core' {
758
750
 
759
751
  declare module '@tiptap/core' {
760
752
  interface Commands<ReturnType> {
761
- lineHeight: {
762
- setLineHeight: (lineHeight: string) => ReturnType;
763
- unsetLineHeight: () => ReturnType;
753
+ painter: {
754
+ setPainter: (marks: Mark[]) => ReturnType;
764
755
  };
765
756
  }
766
757
  }
@@ -768,11 +759,14 @@ declare module '@tiptap/core' {
768
759
 
769
760
  declare module '@tiptap/core' {
770
761
  interface Commands<ReturnType> {
771
- emoji: {
772
- setEmoji: (emoji: {
773
- name: string;
774
- emoji: string;
775
- }) => ReturnType;
762
+ search: {
763
+ setSearchTerm: (searchTerm: string) => ReturnType;
764
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
765
+ replace: () => ReturnType;
766
+ replaceAll: () => ReturnType;
767
+ goToPrevSearchResult: () => void;
768
+ goToNextSearchResult: () => void;
769
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
776
770
  };
777
771
  }
778
772
  }
@@ -780,17 +774,9 @@ declare module '@tiptap/core' {
780
774
 
781
775
  declare module '@tiptap/core' {
782
776
  interface Commands<ReturnType> {
783
- fontSize: {
784
- /**
785
- * Set the text font size. ex: "12px", "2em", or "small". Must be a valid
786
- * CSS font-size
787
- * (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
788
- */
789
- setFontSize: (fontSize: string) => ReturnType;
790
- /**
791
- * Unset the font size
792
- */
793
- unsetFontSize: () => ReturnType;
777
+ lineHeight: {
778
+ setLineHeight: (lineHeight: string) => ReturnType;
779
+ unsetLineHeight: () => ReturnType;
794
780
  };
795
781
  }
796
782
  }
@@ -798,9 +784,11 @@ declare module '@tiptap/core' {
798
784
 
799
785
  declare module '@tiptap/core' {
800
786
  interface Commands<ReturnType> {
801
- tableCellBackground: {
802
- setTableCellBackground: (color: string) => ReturnType;
803
- unsetTableCellBackground: () => ReturnType;
787
+ emoji: {
788
+ setEmoji: (emoji: {
789
+ name: string;
790
+ emoji: string;
791
+ }) => ReturnType;
804
792
  };
805
793
  }
806
794
  }
@@ -808,9 +796,8 @@ declare module '@tiptap/core' {
808
796
 
809
797
  declare module '@tiptap/core' {
810
798
  interface Commands<ReturnType> {
811
- tableOfContents: {
812
- setTableOfContents: () => ReturnType;
813
- removeTableOfContents: () => ReturnType;
799
+ katex: {
800
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
814
801
  };
815
802
  }
816
803
  }
@@ -818,8 +805,19 @@ declare module '@tiptap/core' {
818
805
 
819
806
  declare module '@tiptap/core' {
820
807
  interface Commands<ReturnType> {
821
- exportWord: {
822
- exportToWord: () => ReturnType;
808
+ imageUpload: {
809
+ /**
810
+ * Add an image
811
+ */
812
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
813
+ /**
814
+ * Update an image
815
+ */
816
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
817
+ /**
818
+ * Set image alignment
819
+ */
820
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
823
821
  };
824
822
  }
825
823
  }
@@ -827,8 +825,13 @@ declare module '@tiptap/core' {
827
825
 
828
826
  declare module '@tiptap/core' {
829
827
  interface Commands<ReturnType> {
830
- painter: {
831
- setPainter: (marks: Mark[]) => ReturnType;
828
+ columns: {
829
+ insertColumns: (attrs?: {
830
+ cols: number;
831
+ }) => ReturnType;
832
+ addColBefore: () => ReturnType;
833
+ addColAfter: () => ReturnType;
834
+ deleteCol: () => ReturnType;
832
835
  };
833
836
  }
834
837
  }
@@ -836,14 +839,15 @@ declare module '@tiptap/core' {
836
839
 
837
840
  declare module '@tiptap/core' {
838
841
  interface Commands<ReturnType> {
839
- search: {
840
- setSearchTerm: (searchTerm: string) => ReturnType;
841
- setReplaceTerm: (replaceTerm: string) => ReturnType;
842
- replace: () => ReturnType;
843
- replaceAll: () => ReturnType;
844
- goToPrevSearchResult: () => void;
845
- goToNextSearchResult: () => void;
846
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
842
+ indent: {
843
+ /**
844
+ * Set the indent attribute
845
+ */
846
+ indent: () => ReturnType;
847
+ /**
848
+ * Set the outdent attribute
849
+ */
850
+ outdent: () => ReturnType;
847
851
  };
848
852
  }
849
853
  }
@@ -851,13 +855,19 @@ declare module '@tiptap/core' {
851
855
 
852
856
  declare module '@tiptap/core' {
853
857
  interface Commands<ReturnType> {
854
- columns: {
855
- insertColumns: (attrs?: {
856
- cols: number;
857
- }) => ReturnType;
858
- addColBefore: () => ReturnType;
859
- addColAfter: () => ReturnType;
860
- deleteCol: () => ReturnType;
858
+ imageGifUpload: {
859
+ /**
860
+ * Add an image gif
861
+ */
862
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
863
+ /**
864
+ * Update an image gif
865
+ */
866
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
867
+ /**
868
+ * Set image alignment
869
+ */
870
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
861
871
  };
862
872
  }
863
873
  }
@@ -865,8 +875,9 @@ declare module '@tiptap/core' {
865
875
 
866
876
  declare module '@tiptap/core' {
867
877
  interface Commands<ReturnType> {
868
- katex: {
869
- setKatex: (arg?: IKatexAttrs) => ReturnType;
878
+ drawer: {
879
+ setDrawer: (options: any, replace?: any) => ReturnType;
880
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
870
881
  };
871
882
  }
872
883
  }
@@ -874,9 +885,9 @@ declare module '@tiptap/core' {
874
885
 
875
886
  declare module '@tiptap/core' {
876
887
  interface Commands<ReturnType> {
877
- mermaid: {
878
- setMermaid: (options: any, replace?: any) => ReturnType;
879
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
888
+ tableOfContents: {
889
+ setTableOfContents: () => ReturnType;
890
+ removeTableOfContents: () => ReturnType;
880
891
  };
881
892
  }
882
893
  }
@@ -893,19 +904,14 @@ declare module '@tiptap/core' {
893
904
 
894
905
  declare module '@tiptap/core' {
895
906
  interface Commands<ReturnType> {
896
- imageGifUpload: {
897
- /**
898
- * Add an image gif
899
- */
900
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
901
- /**
902
- * Update an image gif
903
- */
904
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
907
+ twitter: {
905
908
  /**
906
- * Set image alignment
909
+ * Insert a tweet
910
+ * @param options The tweet attributes
911
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
907
912
  */
908
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
913
+ setTweet: (options: SetTweetOptions) => ReturnType;
914
+ updateTweet: (options: SetTweetOptions) => ReturnType;
909
915
  };
910
916
  }
911
917
  }
@@ -913,14 +919,9 @@ declare module '@tiptap/core' {
913
919
 
914
920
  declare module '@tiptap/core' {
915
921
  interface Commands<ReturnType> {
916
- twitter: {
917
- /**
918
- * Insert a tweet
919
- * @param options The tweet attributes
920
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
921
- */
922
- setTweet: (options: SetTweetOptions) => ReturnType;
923
- updateTweet: (options: SetTweetOptions) => ReturnType;
922
+ mermaid: {
923
+ setMermaid: (options: any, replace?: any) => ReturnType;
924
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
924
925
  };
925
926
  }
926
927
  }
@@ -928,9 +929,8 @@ declare module '@tiptap/core' {
928
929
 
929
930
  declare module '@tiptap/core' {
930
931
  interface Commands<ReturnType> {
931
- drawer: {
932
- setDrawer: (options: any, replace?: any) => ReturnType;
933
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
932
+ exportWord: {
933
+ exportToWord: () => ReturnType;
934
934
  };
935
935
  }
936
936
  }
@@ -707,19 +707,17 @@ declare module '@tiptap/core' {
707
707
 
708
708
  declare module '@tiptap/core' {
709
709
  interface Commands<ReturnType> {
710
- imageUpload: {
711
- /**
712
- * Add an image
713
- */
714
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
710
+ fontSize: {
715
711
  /**
716
- * Update an image
712
+ * Set the text font size. ex: "12px", "2em", or "small". Must be a valid
713
+ * CSS font-size
714
+ * (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
717
715
  */
718
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
716
+ setFontSize: (fontSize: string) => ReturnType;
719
717
  /**
720
- * Set image alignment
718
+ * Unset the font size
721
719
  */
722
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
720
+ unsetFontSize: () => ReturnType;
723
721
  };
724
722
  }
725
723
  }
@@ -727,14 +725,9 @@ declare module '@tiptap/core' {
727
725
 
728
726
  declare module '@tiptap/core' {
729
727
  interface Commands<ReturnType> {
730
- iframe: {
731
- /**
732
- * Add an iframe
733
- */
734
- setIframe: (options: {
735
- src: string;
736
- service: string;
737
- }) => ReturnType;
728
+ tableCellBackground: {
729
+ setTableCellBackground: (color: string) => ReturnType;
730
+ unsetTableCellBackground: () => ReturnType;
738
731
  };
739
732
  }
740
733
  }
@@ -742,15 +735,14 @@ declare module '@tiptap/core' {
742
735
 
743
736
  declare module '@tiptap/core' {
744
737
  interface Commands<ReturnType> {
745
- indent: {
746
- /**
747
- * Set the indent attribute
748
- */
749
- indent: () => ReturnType;
738
+ iframe: {
750
739
  /**
751
- * Set the outdent attribute
740
+ * Add an iframe
752
741
  */
753
- outdent: () => ReturnType;
742
+ setIframe: (options: {
743
+ src: string;
744
+ service: string;
745
+ }) => ReturnType;
754
746
  };
755
747
  }
756
748
  }
@@ -758,9 +750,8 @@ declare module '@tiptap/core' {
758
750
 
759
751
  declare module '@tiptap/core' {
760
752
  interface Commands<ReturnType> {
761
- lineHeight: {
762
- setLineHeight: (lineHeight: string) => ReturnType;
763
- unsetLineHeight: () => ReturnType;
753
+ painter: {
754
+ setPainter: (marks: Mark[]) => ReturnType;
764
755
  };
765
756
  }
766
757
  }
@@ -768,11 +759,14 @@ declare module '@tiptap/core' {
768
759
 
769
760
  declare module '@tiptap/core' {
770
761
  interface Commands<ReturnType> {
771
- emoji: {
772
- setEmoji: (emoji: {
773
- name: string;
774
- emoji: string;
775
- }) => ReturnType;
762
+ search: {
763
+ setSearchTerm: (searchTerm: string) => ReturnType;
764
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
765
+ replace: () => ReturnType;
766
+ replaceAll: () => ReturnType;
767
+ goToPrevSearchResult: () => void;
768
+ goToNextSearchResult: () => void;
769
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
776
770
  };
777
771
  }
778
772
  }
@@ -780,17 +774,9 @@ declare module '@tiptap/core' {
780
774
 
781
775
  declare module '@tiptap/core' {
782
776
  interface Commands<ReturnType> {
783
- fontSize: {
784
- /**
785
- * Set the text font size. ex: "12px", "2em", or "small". Must be a valid
786
- * CSS font-size
787
- * (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
788
- */
789
- setFontSize: (fontSize: string) => ReturnType;
790
- /**
791
- * Unset the font size
792
- */
793
- unsetFontSize: () => ReturnType;
777
+ lineHeight: {
778
+ setLineHeight: (lineHeight: string) => ReturnType;
779
+ unsetLineHeight: () => ReturnType;
794
780
  };
795
781
  }
796
782
  }
@@ -798,9 +784,11 @@ declare module '@tiptap/core' {
798
784
 
799
785
  declare module '@tiptap/core' {
800
786
  interface Commands<ReturnType> {
801
- tableCellBackground: {
802
- setTableCellBackground: (color: string) => ReturnType;
803
- unsetTableCellBackground: () => ReturnType;
787
+ emoji: {
788
+ setEmoji: (emoji: {
789
+ name: string;
790
+ emoji: string;
791
+ }) => ReturnType;
804
792
  };
805
793
  }
806
794
  }
@@ -808,9 +796,8 @@ declare module '@tiptap/core' {
808
796
 
809
797
  declare module '@tiptap/core' {
810
798
  interface Commands<ReturnType> {
811
- tableOfContents: {
812
- setTableOfContents: () => ReturnType;
813
- removeTableOfContents: () => ReturnType;
799
+ katex: {
800
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
814
801
  };
815
802
  }
816
803
  }
@@ -818,8 +805,19 @@ declare module '@tiptap/core' {
818
805
 
819
806
  declare module '@tiptap/core' {
820
807
  interface Commands<ReturnType> {
821
- exportWord: {
822
- exportToWord: () => ReturnType;
808
+ imageUpload: {
809
+ /**
810
+ * Add an image
811
+ */
812
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
813
+ /**
814
+ * Update an image
815
+ */
816
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
817
+ /**
818
+ * Set image alignment
819
+ */
820
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
823
821
  };
824
822
  }
825
823
  }
@@ -827,8 +825,13 @@ declare module '@tiptap/core' {
827
825
 
828
826
  declare module '@tiptap/core' {
829
827
  interface Commands<ReturnType> {
830
- painter: {
831
- setPainter: (marks: Mark[]) => ReturnType;
828
+ columns: {
829
+ insertColumns: (attrs?: {
830
+ cols: number;
831
+ }) => ReturnType;
832
+ addColBefore: () => ReturnType;
833
+ addColAfter: () => ReturnType;
834
+ deleteCol: () => ReturnType;
832
835
  };
833
836
  }
834
837
  }
@@ -836,14 +839,15 @@ declare module '@tiptap/core' {
836
839
 
837
840
  declare module '@tiptap/core' {
838
841
  interface Commands<ReturnType> {
839
- search: {
840
- setSearchTerm: (searchTerm: string) => ReturnType;
841
- setReplaceTerm: (replaceTerm: string) => ReturnType;
842
- replace: () => ReturnType;
843
- replaceAll: () => ReturnType;
844
- goToPrevSearchResult: () => void;
845
- goToNextSearchResult: () => void;
846
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
842
+ indent: {
843
+ /**
844
+ * Set the indent attribute
845
+ */
846
+ indent: () => ReturnType;
847
+ /**
848
+ * Set the outdent attribute
849
+ */
850
+ outdent: () => ReturnType;
847
851
  };
848
852
  }
849
853
  }
@@ -851,13 +855,19 @@ declare module '@tiptap/core' {
851
855
 
852
856
  declare module '@tiptap/core' {
853
857
  interface Commands<ReturnType> {
854
- columns: {
855
- insertColumns: (attrs?: {
856
- cols: number;
857
- }) => ReturnType;
858
- addColBefore: () => ReturnType;
859
- addColAfter: () => ReturnType;
860
- deleteCol: () => ReturnType;
858
+ imageGifUpload: {
859
+ /**
860
+ * Add an image gif
861
+ */
862
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
863
+ /**
864
+ * Update an image gif
865
+ */
866
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
867
+ /**
868
+ * Set image alignment
869
+ */
870
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
861
871
  };
862
872
  }
863
873
  }
@@ -865,8 +875,9 @@ declare module '@tiptap/core' {
865
875
 
866
876
  declare module '@tiptap/core' {
867
877
  interface Commands<ReturnType> {
868
- katex: {
869
- setKatex: (arg?: IKatexAttrs) => ReturnType;
878
+ drawer: {
879
+ setDrawer: (options: any, replace?: any) => ReturnType;
880
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
870
881
  };
871
882
  }
872
883
  }
@@ -874,9 +885,9 @@ declare module '@tiptap/core' {
874
885
 
875
886
  declare module '@tiptap/core' {
876
887
  interface Commands<ReturnType> {
877
- mermaid: {
878
- setMermaid: (options: any, replace?: any) => ReturnType;
879
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
888
+ tableOfContents: {
889
+ setTableOfContents: () => ReturnType;
890
+ removeTableOfContents: () => ReturnType;
880
891
  };
881
892
  }
882
893
  }
@@ -893,19 +904,14 @@ declare module '@tiptap/core' {
893
904
 
894
905
  declare module '@tiptap/core' {
895
906
  interface Commands<ReturnType> {
896
- imageGifUpload: {
897
- /**
898
- * Add an image gif
899
- */
900
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
901
- /**
902
- * Update an image gif
903
- */
904
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
907
+ twitter: {
905
908
  /**
906
- * Set image alignment
909
+ * Insert a tweet
910
+ * @param options The tweet attributes
911
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
907
912
  */
908
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
913
+ setTweet: (options: SetTweetOptions) => ReturnType;
914
+ updateTweet: (options: SetTweetOptions) => ReturnType;
909
915
  };
910
916
  }
911
917
  }
@@ -913,14 +919,9 @@ declare module '@tiptap/core' {
913
919
 
914
920
  declare module '@tiptap/core' {
915
921
  interface Commands<ReturnType> {
916
- twitter: {
917
- /**
918
- * Insert a tweet
919
- * @param options The tweet attributes
920
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
921
- */
922
- setTweet: (options: SetTweetOptions) => ReturnType;
923
- updateTweet: (options: SetTweetOptions) => ReturnType;
922
+ mermaid: {
923
+ setMermaid: (options: any, replace?: any) => ReturnType;
924
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
924
925
  };
925
926
  }
926
927
  }
@@ -928,9 +929,8 @@ declare module '@tiptap/core' {
928
929
 
929
930
  declare module '@tiptap/core' {
930
931
  interface Commands<ReturnType> {
931
- drawer: {
932
- setDrawer: (options: any, replace?: any) => ReturnType;
933
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
932
+ exportWord: {
933
+ exportToWord: () => ReturnType;
934
934
  };
935
935
  }
936
936
  }
@@ -5188,14 +5188,15 @@ const hy = Ne.create({
5188
5188
  editor: this.editor,
5189
5189
  char: "/",
5190
5190
  allowSpaces: !0,
5191
- startOfLine: !0,
5191
+ startOfLine: !1,
5192
+ allowedPrefixes: null,
5192
5193
  pluginKey: new Ve(mn),
5193
5194
  allow: ({ state: e, range: t }) => {
5194
- var u, d, f;
5195
- const n = e.doc.resolve(t.from), i = n.depth === 1, r = n.parent.type.name === "paragraph", a = ((u = n.parent.textContent) == null ? void 0 : u.charAt(0)) === "/", o = this.editor.isActive("column"), s = (f = n.parent.textContent) == null ? void 0 : f.slice(
5196
- Math.max(0, (d = n.parent.textContent) == null ? void 0 : d.indexOf("/"))
5197
- ), c = !(s != null && s.endsWith(" "));
5198
- return (i && r && a || o && r && a) && c;
5195
+ var a, o;
5196
+ const n = e.doc.resolve(t.from);
5197
+ return ((o = n.parent.textContent) == null ? void 0 : o.slice(
5198
+ Math.max(0, (a = n.parent.textContent) == null ? void 0 : a.indexOf("/"))
5199
+ )).endsWith("/");
5199
5200
  },
5200
5201
  command: ({ editor: e, range: t, props: n }) => {
5201
5202
  const { view: i } = e;