@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 CHANGED
@@ -1,3 +1,5 @@
1
+ [![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fmdaemon-technologies%2FMDHTMLEditor%2Fmaster%2Fpackage.json&query=%24.version&prefix=v&label=npm&color=blue)](https://www.npmjs.com/package/@mdaemon/html-editor) [![install size](https://packagephobia.com/badge?p=@mdaemon/html-editor)](https://packagephobia.com/result?p=@mdaemon/html-editor) [![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fmdaemon-technologies%2FMDHTMLEditor%2Fmaster%2Fpackage.json&query=%24.license&prefix=v&label=license&color=green)](https://github.com/mdaemon-technologies/MDHTMLEditor/blob/master/LICENSE) [![Node.js CI](https://github.com/mdaemon-technologies/MDHTMLEditor/actions/workflows/ci.yml/badge.svg)](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
- anchor: {
900
- /** Insert a named anchor at the cursor. */
901
- setAnchor: (name: string) => ReturnType;
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
- inlineStyle: {
910
- /** Apply a CSS class to the current selection via the textStyle mark. */
911
- setInlineClass: (className: string) => ReturnType;
912
- /** Remove the textStyle class. */
913
- unsetInlineClass: () => ReturnType;
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
  }