@mario9/tiptap-editor 1.0.4 → 1.1.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 +20 -5
- package/package.json +26 -20
package/README.md
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
## 效果预览
|
|
6
6
|
|
|
7
|
-

|
|
7
|
+

|
|
8
8
|
|
|
9
|
-

|
|
9
|
+

|
|
10
10
|
|
|
11
|
-

|
|
11
|
+

|
|
12
12
|
|
|
13
13
|
## 安装
|
|
14
14
|
|
|
@@ -78,7 +78,7 @@ const content = ref('')
|
|
|
78
78
|
/>
|
|
79
79
|
```
|
|
80
80
|
|
|
81
|
-

|
|
81
|
+

|
|
82
82
|
|
|
83
83
|
### 只读模式
|
|
84
84
|
|
|
@@ -258,7 +258,22 @@ const openMyPanel = inject<() => void>('openMyPanel')
|
|
|
258
258
|
|
|
259
259
|
- vue 3.5.25
|
|
260
260
|
- element-plus 2.13.3
|
|
261
|
-
- @tiptap/core 3.
|
|
261
|
+
- @tiptap/core 3.27.0+
|
|
262
|
+
|
|
263
|
+
## 版本历史
|
|
264
|
+
|
|
265
|
+
### v1.1.0 (计划中)
|
|
266
|
+
- ⬆️ 升级 Tiptap 到 3.27.0(从 3.22.5)
|
|
267
|
+
- 🐛 修复表格复制问题(上游修复)
|
|
268
|
+
- 🐛 修复 Markdown 快捷键问题(上游修复)
|
|
269
|
+
- ⚡ 性能优化(ProseMirror 底层升级)
|
|
270
|
+
- 📚 详见 [UPGRADE.md](./UPGRADE.md)
|
|
271
|
+
|
|
272
|
+
### v1.0.4 (当前版本)
|
|
273
|
+
- 📸 添加效果预览截图
|
|
274
|
+
- ✨ 添加 playwright-cli skill
|
|
275
|
+
- 📖 补充常见场景示例
|
|
276
|
+
- 🔧 拆分 editor.scss 并统一 CSS 类名前缀
|
|
262
277
|
|
|
263
278
|
## 代码结构
|
|
264
279
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mario9/tiptap-editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "基于 Tiptap + Vue 3 的富文本编辑器组件。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/tiptap-editor.umd.cjs",
|
|
@@ -47,37 +47,43 @@
|
|
|
47
47
|
"dev": "vite",
|
|
48
48
|
"build": "vue-tsc -b && vite build",
|
|
49
49
|
"build:lib": "vue-tsc -b && vite build --mode lib",
|
|
50
|
-
"preview": "vite preview"
|
|
50
|
+
"preview": "vite preview",
|
|
51
|
+
"test": "playwright test",
|
|
52
|
+
"test:ui": "playwright test --ui",
|
|
53
|
+
"test:headed": "playwright test --headed",
|
|
54
|
+
"test:report": "playwright show-report"
|
|
51
55
|
},
|
|
52
56
|
"peerDependencies": {
|
|
53
|
-
"@tiptap/core": "^3.
|
|
54
|
-
"@tiptap/extension-bubble-menu": "^3.
|
|
55
|
-
"@tiptap/extension-code-block-lowlight": "^3.
|
|
56
|
-
"@tiptap/extension-highlight": "^3.
|
|
57
|
-
"@tiptap/extension-horizontal-rule": "^3.
|
|
58
|
-
"@tiptap/extension-image": "^3.
|
|
59
|
-
"@tiptap/extension-list": "^3.
|
|
60
|
-
"@tiptap/extension-mathematics": "^3.
|
|
61
|
-
"@tiptap/extension-placeholder": "^3.
|
|
62
|
-
"@tiptap/extension-subscript": "^3.
|
|
63
|
-
"@tiptap/extension-superscript": "^3.
|
|
64
|
-
"@tiptap/extension-table": "^3.
|
|
65
|
-
"@tiptap/extension-text-align": "^3.
|
|
66
|
-
"@tiptap/extension-typography": "^3.
|
|
67
|
-
"@tiptap/extensions": "^3.
|
|
68
|
-
"@tiptap/pm": "^3.
|
|
69
|
-
"@tiptap/starter-kit": "^3.
|
|
70
|
-
"@tiptap/vue-3": "^3.
|
|
57
|
+
"@tiptap/core": "^3.27.0",
|
|
58
|
+
"@tiptap/extension-bubble-menu": "^3.27.0",
|
|
59
|
+
"@tiptap/extension-code-block-lowlight": "^3.27.0",
|
|
60
|
+
"@tiptap/extension-highlight": "^3.27.0",
|
|
61
|
+
"@tiptap/extension-horizontal-rule": "^3.27.0",
|
|
62
|
+
"@tiptap/extension-image": "^3.27.0",
|
|
63
|
+
"@tiptap/extension-list": "^3.27.0",
|
|
64
|
+
"@tiptap/extension-mathematics": "^3.27.0",
|
|
65
|
+
"@tiptap/extension-placeholder": "^3.27.0",
|
|
66
|
+
"@tiptap/extension-subscript": "^3.27.0",
|
|
67
|
+
"@tiptap/extension-superscript": "^3.27.0",
|
|
68
|
+
"@tiptap/extension-table": "^3.27.0",
|
|
69
|
+
"@tiptap/extension-text-align": "^3.27.0",
|
|
70
|
+
"@tiptap/extension-typography": "^3.27.0",
|
|
71
|
+
"@tiptap/extensions": "^3.27.0",
|
|
72
|
+
"@tiptap/pm": "^3.27.0",
|
|
73
|
+
"@tiptap/starter-kit": "^3.27.0",
|
|
74
|
+
"@tiptap/vue-3": "^3.27.0",
|
|
71
75
|
"element-plus": "^2.13.0",
|
|
72
76
|
"katex": "^0.16.0",
|
|
73
77
|
"lowlight": "^3.3.0",
|
|
74
78
|
"vue": "^3.5.0"
|
|
75
79
|
},
|
|
76
80
|
"devDependencies": {
|
|
81
|
+
"@playwright/test": "^1.61.0",
|
|
77
82
|
"@types/node": "^24.10.1",
|
|
78
83
|
"@vitejs/plugin-vue": "^6.0.2",
|
|
79
84
|
"@vitejs/plugin-vue-jsx": "^5.1.4",
|
|
80
85
|
"@vue/tsconfig": "^0.8.1",
|
|
86
|
+
"playwright": "^1.61.0",
|
|
81
87
|
"sass-embedded": "^1.97.3",
|
|
82
88
|
"typescript": "~5.9.3",
|
|
83
89
|
"unplugin-element-plus": "^0.11.2",
|