reactjs-tiptap-editor 0.0.16 → 0.0.18
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 +26 -24
- package/lib/index.d.ts +26 -24
- package/lib/reactjs-tiptap-editor.cjs +132 -1
- package/lib/reactjs-tiptap-editor.cjs.map +1 -1
- package/lib/reactjs-tiptap-editor.js +1851 -1665
- package/lib/reactjs-tiptap-editor.js.map +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/index.d.cts
CHANGED
|
@@ -1071,6 +1071,8 @@ export declare interface RichTextEditorProps {
|
|
|
1071
1071
|
bubbleMenu?: BubbleMenuProps;
|
|
1072
1072
|
/** Use editor options */
|
|
1073
1073
|
useEditorOptions?: UseEditorOptions;
|
|
1074
|
+
/** Use editor options */
|
|
1075
|
+
resetCSS?: boolean;
|
|
1074
1076
|
}
|
|
1075
1077
|
|
|
1076
1078
|
export declare const SearchAndReplace: Extension<SearchOptions, SearchStorage>;
|
|
@@ -1725,8 +1727,8 @@ declare module '@tiptap/core' {
|
|
|
1725
1727
|
|
|
1726
1728
|
declare module '@tiptap/core' {
|
|
1727
1729
|
interface Commands<ReturnType> {
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
+
painter: {
|
|
1731
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1730
1732
|
};
|
|
1731
1733
|
}
|
|
1732
1734
|
}
|
|
@@ -1734,9 +1736,9 @@ declare module '@tiptap/core' {
|
|
|
1734
1736
|
|
|
1735
1737
|
declare module '@tiptap/core' {
|
|
1736
1738
|
interface Commands<ReturnType> {
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1739
|
+
columns: {
|
|
1740
|
+
setColumns: () => ReturnType;
|
|
1741
|
+
setLayout: (layout: ColumnLayout) => ReturnType;
|
|
1740
1742
|
};
|
|
1741
1743
|
}
|
|
1742
1744
|
}
|
|
@@ -1744,8 +1746,14 @@ declare module '@tiptap/core' {
|
|
|
1744
1746
|
|
|
1745
1747
|
declare module '@tiptap/core' {
|
|
1746
1748
|
interface Commands<ReturnType> {
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
+
iframe: {
|
|
1750
|
+
/**
|
|
1751
|
+
* Add an iframe
|
|
1752
|
+
*/
|
|
1753
|
+
setIframe: (options: {
|
|
1754
|
+
src: string;
|
|
1755
|
+
service: string;
|
|
1756
|
+
}) => ReturnType;
|
|
1749
1757
|
};
|
|
1750
1758
|
}
|
|
1751
1759
|
}
|
|
@@ -1753,8 +1761,8 @@ declare module '@tiptap/core' {
|
|
|
1753
1761
|
|
|
1754
1762
|
declare module '@tiptap/core' {
|
|
1755
1763
|
interface Commands<ReturnType> {
|
|
1756
|
-
|
|
1757
|
-
|
|
1764
|
+
videoUpload: {
|
|
1765
|
+
setVideoUpload: () => ReturnType;
|
|
1758
1766
|
};
|
|
1759
1767
|
}
|
|
1760
1768
|
}
|
|
@@ -1776,9 +1784,9 @@ declare module '@tiptap/core' {
|
|
|
1776
1784
|
|
|
1777
1785
|
declare module '@tiptap/core' {
|
|
1778
1786
|
interface Commands<ReturnType> {
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1787
|
+
tableCellBackground: {
|
|
1788
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1789
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1782
1790
|
};
|
|
1783
1791
|
}
|
|
1784
1792
|
}
|
|
@@ -1786,13 +1794,10 @@ declare module '@tiptap/core' {
|
|
|
1786
1794
|
|
|
1787
1795
|
declare module '@tiptap/core' {
|
|
1788
1796
|
interface Commands<ReturnType> {
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
setIframe: (options: {
|
|
1794
|
-
src: string;
|
|
1795
|
-
service: string;
|
|
1797
|
+
emoji: {
|
|
1798
|
+
setEmoji: (emoji: {
|
|
1799
|
+
name: string;
|
|
1800
|
+
emoji: string;
|
|
1796
1801
|
}) => ReturnType;
|
|
1797
1802
|
};
|
|
1798
1803
|
}
|
|
@@ -1801,11 +1806,8 @@ declare module '@tiptap/core' {
|
|
|
1801
1806
|
|
|
1802
1807
|
declare module '@tiptap/core' {
|
|
1803
1808
|
interface Commands<ReturnType> {
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
name: string;
|
|
1807
|
-
emoji: string;
|
|
1808
|
-
}) => ReturnType;
|
|
1809
|
+
katex: {
|
|
1810
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1809
1811
|
};
|
|
1810
1812
|
}
|
|
1811
1813
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -1071,6 +1071,8 @@ export declare interface RichTextEditorProps {
|
|
|
1071
1071
|
bubbleMenu?: BubbleMenuProps;
|
|
1072
1072
|
/** Use editor options */
|
|
1073
1073
|
useEditorOptions?: UseEditorOptions;
|
|
1074
|
+
/** Use editor options */
|
|
1075
|
+
resetCSS?: boolean;
|
|
1074
1076
|
}
|
|
1075
1077
|
|
|
1076
1078
|
export declare const SearchAndReplace: Extension<SearchOptions, SearchStorage>;
|
|
@@ -1725,8 +1727,8 @@ declare module '@tiptap/core' {
|
|
|
1725
1727
|
|
|
1726
1728
|
declare module '@tiptap/core' {
|
|
1727
1729
|
interface Commands<ReturnType> {
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
+
painter: {
|
|
1731
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1730
1732
|
};
|
|
1731
1733
|
}
|
|
1732
1734
|
}
|
|
@@ -1734,9 +1736,9 @@ declare module '@tiptap/core' {
|
|
|
1734
1736
|
|
|
1735
1737
|
declare module '@tiptap/core' {
|
|
1736
1738
|
interface Commands<ReturnType> {
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1739
|
+
columns: {
|
|
1740
|
+
setColumns: () => ReturnType;
|
|
1741
|
+
setLayout: (layout: ColumnLayout) => ReturnType;
|
|
1740
1742
|
};
|
|
1741
1743
|
}
|
|
1742
1744
|
}
|
|
@@ -1744,8 +1746,14 @@ declare module '@tiptap/core' {
|
|
|
1744
1746
|
|
|
1745
1747
|
declare module '@tiptap/core' {
|
|
1746
1748
|
interface Commands<ReturnType> {
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
+
iframe: {
|
|
1750
|
+
/**
|
|
1751
|
+
* Add an iframe
|
|
1752
|
+
*/
|
|
1753
|
+
setIframe: (options: {
|
|
1754
|
+
src: string;
|
|
1755
|
+
service: string;
|
|
1756
|
+
}) => ReturnType;
|
|
1749
1757
|
};
|
|
1750
1758
|
}
|
|
1751
1759
|
}
|
|
@@ -1753,8 +1761,8 @@ declare module '@tiptap/core' {
|
|
|
1753
1761
|
|
|
1754
1762
|
declare module '@tiptap/core' {
|
|
1755
1763
|
interface Commands<ReturnType> {
|
|
1756
|
-
|
|
1757
|
-
|
|
1764
|
+
videoUpload: {
|
|
1765
|
+
setVideoUpload: () => ReturnType;
|
|
1758
1766
|
};
|
|
1759
1767
|
}
|
|
1760
1768
|
}
|
|
@@ -1776,9 +1784,9 @@ declare module '@tiptap/core' {
|
|
|
1776
1784
|
|
|
1777
1785
|
declare module '@tiptap/core' {
|
|
1778
1786
|
interface Commands<ReturnType> {
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1787
|
+
tableCellBackground: {
|
|
1788
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1789
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1782
1790
|
};
|
|
1783
1791
|
}
|
|
1784
1792
|
}
|
|
@@ -1786,13 +1794,10 @@ declare module '@tiptap/core' {
|
|
|
1786
1794
|
|
|
1787
1795
|
declare module '@tiptap/core' {
|
|
1788
1796
|
interface Commands<ReturnType> {
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
setIframe: (options: {
|
|
1794
|
-
src: string;
|
|
1795
|
-
service: string;
|
|
1797
|
+
emoji: {
|
|
1798
|
+
setEmoji: (emoji: {
|
|
1799
|
+
name: string;
|
|
1800
|
+
emoji: string;
|
|
1796
1801
|
}) => ReturnType;
|
|
1797
1802
|
};
|
|
1798
1803
|
}
|
|
@@ -1801,11 +1806,8 @@ declare module '@tiptap/core' {
|
|
|
1801
1806
|
|
|
1802
1807
|
declare module '@tiptap/core' {
|
|
1803
1808
|
interface Commands<ReturnType> {
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
name: string;
|
|
1807
|
-
emoji: string;
|
|
1808
|
-
}) => ReturnType;
|
|
1809
|
+
katex: {
|
|
1810
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1809
1811
|
};
|
|
1810
1812
|
}
|
|
1811
1813
|
}
|