@mario9/tiptap-editor 1.1.0 → 1.1.2

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.
Files changed (2) hide show
  1. package/README.md +12 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,13 +2,21 @@
2
2
 
3
3
  基于 Tiptap + Vue 3 的富文本编辑器组件,支持 Feature Plugin 架构,消费方可按需引入功能模块实现 tree-shaking。
4
4
 
5
+ ## 在线演示
6
+
7
+ - 🚀 [jsDelivr CDN(国内推荐)](https://cdn.jsdelivr.net/gh/hmfw/tiptap-editor@gh-pages/index.html)
8
+ - 🆎 [Statically CDN(国内备用)](https://cdn.statically.io/gh/hmfw/tiptap-editor/gh-pages/index.html)
9
+ - 🌍 [GitHub Pages(国际访问)](https://hmfw.github.io/tiptap-editor/)
10
+
11
+ > 多个链接均指向同一份演示,按访问速度自选。
12
+
5
13
  ## 效果预览
6
14
 
7
- ![编辑器全貌](docs/screenshots/screenshot-overview.png)
15
+ ![编辑器全貌](https://cdn.jsdelivr.net/gh/hmfw/tiptap-editor@main/docs/screenshots/screenshot-overview.png)
8
16
 
9
- ![代码块与表格](docs/screenshots/screenshot-features.png)
17
+ ![代码块与表格](https://cdn.jsdelivr.net/gh/hmfw/tiptap-editor@main/docs/screenshots/screenshot-features.png)
10
18
 
11
- ![数学公式](docs/screenshots/screenshot-math.png)
19
+ ![数学公式](https://cdn.jsdelivr.net/gh/hmfw/tiptap-editor@main/docs/screenshots/screenshot-math.png)
12
20
 
13
21
  ## 安装
14
22
 
@@ -16,12 +24,6 @@
16
24
  pnpm add @mario9/tiptap-editor
17
25
  ```
18
26
 
19
- 安装 peer dependencies:
20
-
21
- ```bash
22
- pnpm add vue element-plus katex lowlight @tiptap/core @tiptap/starter-kit @tiptap/vue-3 @tiptap/pm @tiptap/extensions @tiptap/extension-bubble-menu @tiptap/extension-code-block-lowlight @tiptap/extension-highlight @tiptap/extension-horizontal-rule @tiptap/extension-image @tiptap/extension-list @tiptap/extension-mathematics @tiptap/extension-placeholder @tiptap/extension-subscript @tiptap/extension-superscript @tiptap/extension-table @tiptap/extension-text-align @tiptap/extension-typography
23
- ```
24
-
25
27
  ## 快速开始
26
28
 
27
29
  不传 `features` 时编辑器只有基础输入能力(无工具栏)。通过 `:features` 按需组合功能:
@@ -78,7 +80,7 @@ const content = ref('')
78
80
  />
79
81
  ```
80
82
 
81
- ![最小化配置工具栏](docs/screenshots/screenshot-minimal.png)
83
+ ![最小化配置工具栏](https://cdn.jsdelivr.net/gh/hmfw/tiptap-editor@main/docs/screenshots/screenshot-minimal.png)
82
84
 
83
85
  ### 只读模式
84
86
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mario9/tiptap-editor",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "基于 Tiptap + Vue 3 的富文本编辑器组件。",
5
5
  "type": "module",
6
6
  "main": "./dist/tiptap-editor.umd.cjs",