@mdaemon/html-editor 1.6.0 → 1.6.1
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/README.md +2 -0
- package/dist/index.d.ts +24 -24
- package/dist/index.js +48546 -50751
- package/dist/index.mjs +48545 -50784
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
[](https://www.npmjs.com/package/@mdaemon/html-editor) [](https://packagephobia.com/result?p=@mdaemon/html-editor) [](https://github.com/mdaemon-technologies/MDHTMLEditor/blob/master/LICENSE) [](https://github.com/mdaemon-technologies/MDHTMLEditor/actions/workflows/ci.yml)
|
|
2
|
+
|
|
1
3
|
# MDHTMLEditor
|
|
2
4
|
|
|
3
5
|
A TinyMCE-compatible HTML editor built on TipTap. This is the core vanilla TypeScript package - for React usage, see `@mdaemon/html-editor-react`.
|
package/dist/index.d.ts
CHANGED
|
@@ -846,22 +846,6 @@ export declare interface UIRegistry {
|
|
|
846
846
|
export { }
|
|
847
847
|
|
|
848
848
|
|
|
849
|
-
declare module '@tiptap/core' {
|
|
850
|
-
interface Commands<ReturnType> {
|
|
851
|
-
fontSize: {
|
|
852
|
-
/**
|
|
853
|
-
* Set the font size
|
|
854
|
-
*/
|
|
855
|
-
setFontSize: (size: string) => ReturnType;
|
|
856
|
-
/**
|
|
857
|
-
* Unset the font size
|
|
858
|
-
*/
|
|
859
|
-
unsetFontSize: () => ReturnType;
|
|
860
|
-
};
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
|
|
865
849
|
declare module '@tiptap/core' {
|
|
866
850
|
interface Commands<ReturnType> {
|
|
867
851
|
lineHeight: {
|
|
@@ -896,9 +880,11 @@ declare module '@tiptap/core' {
|
|
|
896
880
|
|
|
897
881
|
declare module '@tiptap/core' {
|
|
898
882
|
interface Commands<ReturnType> {
|
|
899
|
-
|
|
900
|
-
/**
|
|
901
|
-
|
|
883
|
+
inlineStyle: {
|
|
884
|
+
/** Apply a CSS class to the current selection via the textStyle mark. */
|
|
885
|
+
setInlineClass: (className: string) => ReturnType;
|
|
886
|
+
/** Remove the textStyle class. */
|
|
887
|
+
unsetInlineClass: () => ReturnType;
|
|
902
888
|
};
|
|
903
889
|
}
|
|
904
890
|
}
|
|
@@ -906,11 +892,25 @@ declare module '@tiptap/core' {
|
|
|
906
892
|
|
|
907
893
|
declare module '@tiptap/core' {
|
|
908
894
|
interface Commands<ReturnType> {
|
|
909
|
-
|
|
910
|
-
/**
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
895
|
+
fontSize: {
|
|
896
|
+
/**
|
|
897
|
+
* Set the font size
|
|
898
|
+
*/
|
|
899
|
+
setFontSize: (size: string) => ReturnType;
|
|
900
|
+
/**
|
|
901
|
+
* Unset the font size
|
|
902
|
+
*/
|
|
903
|
+
unsetFontSize: () => ReturnType;
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
|
|
909
|
+
declare module '@tiptap/core' {
|
|
910
|
+
interface Commands<ReturnType> {
|
|
911
|
+
anchor: {
|
|
912
|
+
/** Insert a named anchor at the cursor. */
|
|
913
|
+
setAnchor: (name: string) => ReturnType;
|
|
914
914
|
};
|
|
915
915
|
}
|
|
916
916
|
}
|