@mdaemon/html-editor 1.3.0 → 1.4.0
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 +103 -3
- package/dist/index.d.ts +138 -0
- package/dist/index.js +1593 -54
- package/dist/index.mjs +1593 -54
- package/dist/styles.css +22 -0
- package/package.json +5 -2
package/dist/styles.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
/**
|
|
2
3
|
* MDHTMLEditor Styles
|
|
3
4
|
* TinyMCE oxide-compatible theme
|
|
@@ -42,6 +43,23 @@
|
|
|
42
43
|
border-radius: 0;
|
|
43
44
|
height: 100vh !important;
|
|
44
45
|
}
|
|
46
|
+
.md-editor.md-editor-readonly .md-editor-body {
|
|
47
|
+
cursor: default;
|
|
48
|
+
}
|
|
49
|
+
.md-editor .md-anchor {
|
|
50
|
+
display: inline-block;
|
|
51
|
+
width: 12px;
|
|
52
|
+
height: 14px;
|
|
53
|
+
vertical-align: middle;
|
|
54
|
+
background: rgba(34, 113, 178, 0.12);
|
|
55
|
+
border-bottom: 1px dotted #2271b2;
|
|
56
|
+
cursor: default;
|
|
57
|
+
}
|
|
58
|
+
.md-editor .md-anchor::after {
|
|
59
|
+
content: "⚓";
|
|
60
|
+
font-size: 11px;
|
|
61
|
+
opacity: 0.6;
|
|
62
|
+
}
|
|
45
63
|
|
|
46
64
|
.md-toolbar {
|
|
47
65
|
display: flex;
|
|
@@ -58,6 +76,10 @@
|
|
|
58
76
|
top: 0;
|
|
59
77
|
z-index: 10;
|
|
60
78
|
}
|
|
79
|
+
.md-toolbar.md-toolbar-disabled {
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
opacity: 0.5;
|
|
82
|
+
}
|
|
61
83
|
|
|
62
84
|
.md-toolbar-group {
|
|
63
85
|
display: flex;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdaemon/html-editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "A TinyMCE-compatible HTML editor built on TipTap",
|
|
5
5
|
"homepage": "https://github.com/mdaemon-technologies/MDHTMLEditor",
|
|
6
6
|
"repository": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"lint": "eslint src --ext .ts",
|
|
46
46
|
"typecheck": "tsc --noEmit",
|
|
47
47
|
"demo": "vite test",
|
|
48
|
-
"update:tiptap": "npm install @tiptap/core@latest @tiptap/extension-character-count@latest @tiptap/extension-code-block-lowlight@latest @tiptap/extension-color@latest @tiptap/extension-font-family@latest @tiptap/extension-highlight@latest @tiptap/extension-image@latest @tiptap/extension-link@latest @tiptap/extension-placeholder@latest @tiptap/extension-table@latest @tiptap/extension-table-cell@latest @tiptap/extension-table-header@latest @tiptap/extension-table-row@latest @tiptap/extension-text-align@latest @tiptap/extension-text-style@latest @tiptap/extension-underline@latest @tiptap/pm@latest @tiptap/starter-kit@latest"
|
|
48
|
+
"update:tiptap": "npm install @tiptap/core@latest @tiptap/extension-character-count@latest @tiptap/extension-code-block-lowlight@latest @tiptap/extension-color@latest @tiptap/extension-font-family@latest @tiptap/extension-highlight@latest @tiptap/extension-image@latest @tiptap/extension-link@latest @tiptap/extension-paragraph@latest @tiptap/extension-placeholder@latest @tiptap/extension-subscript@latest @tiptap/extension-superscript@latest @tiptap/extension-table@latest @tiptap/extension-table-cell@latest @tiptap/extension-table-header@latest @tiptap/extension-table-row@latest @tiptap/extension-text-align@latest @tiptap/extension-text-style@latest @tiptap/extension-underline@latest @tiptap/pm@latest @tiptap/starter-kit@latest"
|
|
49
49
|
},
|
|
50
50
|
"keywords": [
|
|
51
51
|
"html-editor",
|
|
@@ -68,7 +68,10 @@
|
|
|
68
68
|
"@tiptap/extension-highlight": "^3.23.4",
|
|
69
69
|
"@tiptap/extension-image": "^3.23.4",
|
|
70
70
|
"@tiptap/extension-link": "^3.23.4",
|
|
71
|
+
"@tiptap/extension-paragraph": "^3.23.4",
|
|
71
72
|
"@tiptap/extension-placeholder": "^3.23.4",
|
|
73
|
+
"@tiptap/extension-subscript": "^3.23.4",
|
|
74
|
+
"@tiptap/extension-superscript": "^3.23.4",
|
|
72
75
|
"@tiptap/extension-table": "^3.23.4",
|
|
73
76
|
"@tiptap/extension-table-cell": "^3.23.4",
|
|
74
77
|
"@tiptap/extension-table-header": "^3.23.4",
|