@mario9/tiptap-editor 1.0.3 → 1.0.4
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 +10 -0
- package/package.json +8 -9
package/README.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
基于 Tiptap + Vue 3 的富文本编辑器组件,支持 Feature Plugin 架构,消费方可按需引入功能模块实现 tree-shaking。
|
|
4
4
|
|
|
5
|
+
## 效果预览
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
5
13
|
## 安装
|
|
6
14
|
|
|
7
15
|
```bash
|
|
@@ -70,6 +78,8 @@ const content = ref('')
|
|
|
70
78
|
/>
|
|
71
79
|
```
|
|
72
80
|
|
|
81
|
+

|
|
82
|
+
|
|
73
83
|
### 只读模式
|
|
74
84
|
|
|
75
85
|
```vue
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mario9/tiptap-editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "基于 Tiptap + Vue 3 的富文本编辑器组件。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/tiptap-editor.umd.cjs",
|
|
@@ -43,6 +43,12 @@
|
|
|
43
43
|
"files": [
|
|
44
44
|
"dist"
|
|
45
45
|
],
|
|
46
|
+
"scripts": {
|
|
47
|
+
"dev": "vite",
|
|
48
|
+
"build": "vue-tsc -b && vite build",
|
|
49
|
+
"build:lib": "vue-tsc -b && vite build --mode lib",
|
|
50
|
+
"preview": "vite preview"
|
|
51
|
+
},
|
|
46
52
|
"peerDependencies": {
|
|
47
53
|
"@tiptap/core": "^3.22.5",
|
|
48
54
|
"@tiptap/extension-bubble-menu": "^3.22.5",
|
|
@@ -67,7 +73,6 @@
|
|
|
67
73
|
"lowlight": "^3.3.0",
|
|
68
74
|
"vue": "^3.5.0"
|
|
69
75
|
},
|
|
70
|
-
"dependencies": {},
|
|
71
76
|
"devDependencies": {
|
|
72
77
|
"@types/node": "^24.10.1",
|
|
73
78
|
"@vitejs/plugin-vue": "^6.0.2",
|
|
@@ -79,11 +84,5 @@
|
|
|
79
84
|
"vite": "^7.3.1",
|
|
80
85
|
"vite-plugin-dts": "^4.5.4",
|
|
81
86
|
"vue-tsc": "^3.1.5"
|
|
82
|
-
},
|
|
83
|
-
"scripts": {
|
|
84
|
-
"dev": "vite",
|
|
85
|
-
"build": "vue-tsc -b && vite build",
|
|
86
|
-
"build:lib": "vue-tsc -b && vite build --mode lib",
|
|
87
|
-
"preview": "vite preview"
|
|
88
87
|
}
|
|
89
|
-
}
|
|
88
|
+
}
|