@umoteam/editor 4.6.2 → 6.0.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 +55 -48
- package/README.zh-CN.md +42 -37
- package/dist/style.css +1 -1
- package/dist/umo-editor.js +53589 -35882
- package/package.json +58 -46
- package/types/index.d.ts +239 -0
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<a href="https://umodoc.com" target="_blank"><img src="https://unpkg.com/@umoteam/editor-external@latest/static/logo.svg" alt="umodoc.com" width="280" /></a>
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
<p style=
|
|
5
|
+
<p style="text-align: center;">
|
|
6
6
|
<a href="https://github.com/umodoc/editor/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/npm/l/@umoteam/editor" /></a>
|
|
7
7
|
<a href="https://www.npmjs.com/package/@umoteam/editor" target="_blank"><img src="https://img.shields.io/npm/v/@umoteam/editor" /></a>
|
|
8
8
|
<a href="https://www.npmjs.com/package/@umoteam/editor" target="_blank"><img src="https://img.shields.io/npm/d18m/@umoteam/editor" /></a>
|
|
@@ -12,61 +12,61 @@
|
|
|
12
12
|
|
|
13
13
|
# 中文介绍
|
|
14
14
|
|
|
15
|
-
Umo Editor 是一个基于 Vue3 和 Tiptap
|
|
15
|
+
Umo Editor 是一个基于 Vue3 和 Tiptap 的本土化开源文档编辑器,专为国人用户设计。它提供了强大的文档编辑能力和 AI 创作功能,支持分页模式、Markdown 语法、富文本编辑、多种格式的节点插入、页面样式设置、文档导出与打印等功能。此外,Umo Editor 还支持自定义扩展、多语言设置和暗色主题。
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Umo Editor 最大的特点是代码完全开源且自主可控,支持私有部署。您可以内网环境中使用,而无需担心数据安全问题。
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
## Introduction
|
|
20
20
|
|
|
21
|
-
Umo Editor is open-source document editor based on Vue3 and Tiptap.
|
|
21
|
+
Umo Editor is an open-source document editor based on Vue3 and Tiptap. It provides powerful document editing capabilities and AI-assisted creation features. Umo Editor supports pagination, Markdown syntax, rich text editing, insertion of various node types, page style settings, document export, and printing. Additionally, it supports custom extensions, multi-language settings, and a dark theme.
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
Umo Editor's largest feature is that its code is completely open source and controllable. It supports private deployment, allowing you to use it in an intranet environment without worrying about data security issues.
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+

|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
As an independent Vue3 plugin, Umo Editor can be easily integrated into various Vue3 projects with zero configuration. For non-Vue3 projects, you can embed Umo Editor into your project via an iframe.
|
|
28
|
+
|
|
29
|
+
[Documentation](https://editor.umodoc.com/en/docs) | [中文文档](https://editor.umodoc.com/cn/docs) | [Playground](https://demo.umodoc.com/editor?lang=en-US) | [GitHub](https://github.com/umodoc/editor) | [NPM](https://www.npmjs.com/package/@umoteam/editor)
|
|
28
30
|
|
|
29
31
|
## Online Experience
|
|
30
32
|
|
|
31
|
-
Visit [Playground](https://demo.umodoc.com/editor?pane=hide&lang=en-US)
|
|
33
|
+
Visit [Playground](https://demo.umodoc.com/editor?pane=hide&lang=en-US) to try Umo Editor.
|
|
32
34
|
|
|
33
35
|
## Documentation
|
|
34
36
|
|
|
35
|
-
Please visit [Documentation](https://editor.umodoc.com/en/docs).
|
|
37
|
+
Please visit [Documentation](https://editor.umodoc.com/en/docs) for detailed instructions.
|
|
36
38
|
|
|
37
39
|
## Design Philosophy
|
|
38
40
|
|
|
39
|
-
|
|
41
|
+
Umo Editor aims to simplify document editing in web applications by providing Microsoft Word-like powerful editing capabilities and pagination mode while maintaining the convenience of web applications. Whether for government and enterprise information management systems, academic research writing, team document collaboration, knowledge base management, or personal note organization, Umo Editor is your reliable assistant.
|
|
40
42
|
|
|
41
43
|
## Open Source Advantages
|
|
42
44
|
|
|
43
|
-
- **Free to Use**:
|
|
44
|
-
|
|
45
|
-
- **
|
|
46
|
-
|
|
47
|
-
- **Customizable Development**: Open source means greater flexibility. Developers can customize the development according to project needs to create a unique document editor.
|
|
45
|
+
- **Free to Use**: Umo Editor is free for all developers under the [MIT License](https://github.com/umo-editor/umo-editor/blob/main/LICENSE), with no copyright concerns.
|
|
46
|
+
- **Continuous Updates**: Umo Editor is continuously iterated to optimize features and enhance user experience.
|
|
47
|
+
- **Custom Development**: Open source allows developers to customize Umo Editor to meet project-specific needs.
|
|
48
48
|
|
|
49
|
-
##
|
|
49
|
+
## Key Features
|
|
50
50
|
|
|
51
|
-
- Zero
|
|
52
|
-
- Pagination mode similar to
|
|
51
|
+
- Zero configuration, ready to use
|
|
52
|
+
- Pagination mode similar to Microsoft Word
|
|
53
53
|
- Lightweight
|
|
54
|
-
- WYSIWYG
|
|
55
|
-
- Rich
|
|
54
|
+
- Full WYSIWYG editing
|
|
55
|
+
- Rich text editing
|
|
56
56
|
- Markdown syntax support
|
|
57
57
|
- Integrated practical tools
|
|
58
58
|
- Presentation mode
|
|
59
59
|
- Document export and sharing
|
|
60
60
|
- Page settings
|
|
61
|
-
- AI assistant
|
|
62
|
-
-
|
|
63
|
-
-
|
|
61
|
+
- AI document assistant
|
|
62
|
+
- Print and print preview support
|
|
63
|
+
- Custom extensions support
|
|
64
64
|
- Shortcut key support
|
|
65
65
|
- Theme customization
|
|
66
|
-
-
|
|
67
|
-
- Dark mode
|
|
66
|
+
- Multilingual settings
|
|
67
|
+
- Dark mode
|
|
68
68
|
|
|
69
|
-
For more
|
|
69
|
+
For more details, see [Features](https://editor.umodoc.com/en/docs/features).
|
|
70
70
|
|
|
71
71
|
## Browser Support
|
|
72
72
|
|
|
@@ -78,47 +78,54 @@ For more detailed introductions, see [Core Features](./docs/features).
|
|
|
78
78
|
| Microsoft Edge | Latest | ✅ |
|
|
79
79
|
| Internet Explorer (IE) | All | ❌ |
|
|
80
80
|
|
|
81
|
-
##
|
|
81
|
+
## Environment Support
|
|
82
82
|
|
|
83
|
-
Node.js
|
|
83
|
+
- **Node.js** (>=v18.0.0)
|
|
84
|
+
- **Vue** (>=v3.x)
|
|
85
|
+
- **Vite** (>=v4.x)
|
|
86
|
+
- **Tiptap** (>=v2.6)
|
|
87
|
+
- **TypeScript** (>=v5.5)
|
|
84
88
|
|
|
85
89
|
## Join the Community
|
|
86
90
|
|
|
87
|
-
We encourage users to join the Umo Editor open-source community and participate in the development and improvement of the product. Whether submitting bug reports, feature requests, or code contributions,
|
|
91
|
+
We encourage users to join the Umo Editor open-source community and participate in the development and improvement of the product. Whether it's submitting bug reports, feature requests, or code contributions, your involvement is invaluable to our community.
|
|
88
92
|
|
|
89
|
-
|
|
93
|
+
Submit issues or suggestions via [GitHub Discussions](https://github.com/umodoc/editor/discussions).
|
|
90
94
|
|
|
91
|
-
|
|
95
|
+
Report bugs via [GitHub Issues](https://github.com/umodoc/editor/issues).
|
|
92
96
|
|
|
93
|
-
##
|
|
97
|
+
## Contribute Code
|
|
94
98
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
The development of Umo Editor could not have been possible without the support of the community. Below is the list of contributors who have contributed code to Umo Editor. We extend our thanks to them:
|
|
99
|
+
The development of Umo Editor relies on community support. Below is a list of contributors who have contributed code to Umo Editor. We thank them for their efforts:
|
|
98
100
|
|
|
99
101
|
- [Umo Team](https://github.com/umodoc): 👨💻 Core developers
|
|
100
|
-
- [Cassielxd](https://github.com/Cassielxd):
|
|
101
|
-
- [
|
|
102
|
-
- [
|
|
103
|
-
- [
|
|
102
|
+
- [Cassielxd](https://github.com/Cassielxd): 💪🏻 Implemented pagination and many important features
|
|
103
|
+
- [china-wangxu](https://github.com/china-wangxu): 💪🏻 Added many important features
|
|
104
|
+
- [Na'aman Hirschfeld](https://github.com/Goldziher): 💪🏻 Enhanced TypeScript support and added tests
|
|
105
|
+
- [ChenErik](https://github.com/ChenErik): 🛠️ Contributed code
|
|
106
|
+
- [SerRashin](https://github.com/SerRashin): 🛠️ Added Russian language support
|
|
107
|
+
- [Sunny Wisozk](https://github.com/SunnyWisozk): 🛠️ Contributed code
|
|
108
|
+
- [Sherman Xu](https://github.com/xuzhenjun130): 🛠️ Contributed code
|
|
104
109
|
|
|
105
110
|
We welcome all forms of contributions, including but not limited to submitting bug reports, feature requests, and code contributions.
|
|
106
111
|
|
|
107
112
|
## Contact Us
|
|
108
113
|
|
|
109
|
-
If you have any questions or suggestions, please contact us through the following
|
|
114
|
+
If you have any questions or suggestions, please contact us through the following channels. Before doing so, we recommend reading this documentation thoroughly to understand how to use Umo Editor.
|
|
110
115
|
|
|
111
|
-
- Feedback: https://github.com/umodoc/editor/issues
|
|
112
|
-
- Community: https://github.com/umodoc/editor/discussions
|
|
113
|
-
- Email: [contact@
|
|
116
|
+
- Feedback: [GitHub Issues](https://github.com/umodoc/editor/issues)
|
|
117
|
+
- Community: [GitHub Discussions](https://github.com/umodoc/editor/discussions)
|
|
118
|
+
- Email: [contact@umodoc.com](mailto:contact@umodoc.com)
|
|
114
119
|
|
|
115
120
|
## Support Us
|
|
116
121
|
|
|
117
122
|
If you find Umo Editor useful, please consider supporting us in the following ways:
|
|
118
123
|
|
|
119
|
-
- ⭐ Star the [Umo Editor
|
|
120
|
-
- 🔗 If you use Umo Editor in your project,
|
|
124
|
+
- ⭐ Star the [Umo Editor repository](https://github.com/umodoc/editor) to show your support.
|
|
125
|
+
- 🔗 If you use Umo Editor in your project, add a link to https://github.com/umodoc/editor.
|
|
126
|
+
|
|
127
|
+
## Open Source License
|
|
121
128
|
|
|
122
|
-
|
|
129
|
+
Umo Editor is licensed under the [MIT License](./LICENSE). You are free to use, modify, and distribute this software, but this does **not** mean you are allowed to remove the copyright information at will. Please retain the Umo Editor copyright notice and the link displayed in the interface. Removal of these will be considered an infringement. We encourage you to support open-source projects.
|
|
123
130
|
|
|
124
|
-
|
|
131
|
+
If you do not wish to retain the copyright information, please contact us or consider purchasing the commercial version: [Umo Editor Next](https://editor.umodoc.com/cn/docs/next).
|
package/README.zh-CN.md
CHANGED
|
@@ -12,57 +12,55 @@
|
|
|
12
12
|
|
|
13
13
|
## 基本介绍
|
|
14
14
|
|
|
15
|
-
Umo Editor 是一个基于 Vue3 和 Tiptap
|
|
15
|
+
Umo Editor 是一个基于 Vue3 和 Tiptap 的本土化开源文档编辑器,专为国人用户设计。它提供了强大的文档编辑能力和 AI 创作功能,支持分页模式、Markdown 语法、富文本编辑、多种格式的节点插入、页面样式设置、文档导出与打印等功能。此外,Umo Editor 还支持自定义扩展、多语言设置和暗色主题。
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Umo Editor 最大的特点是代码完全开源且自主可控,支持私有部署。您可以内网环境中使用,而无需担心数据安全问题。
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+

|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
作为一个独立的 Vue3 插件,Umo Editor 可以轻松集成到各类 Vue3 项目中。对于非 Vue3 项目,您可以通过 Iframe 将 Umo Editor 嵌入到您的项目中。
|
|
22
22
|
|
|
23
23
|
[开发文档](https://editor.umodoc.com/cn/docs) | [在线演示](https://demo.umodoc.com/editor?lang=zh-CN) | [GitHub](https://github.com/umodoc/editor) | [码云(国内镜像)](https://gitee.com/umodoc/editor) | [NPM](https://www.npmjs.com/package/@umoteam/editor)
|
|
24
24
|
|
|
25
25
|
## 在线体验
|
|
26
26
|
|
|
27
|
-
访问
|
|
27
|
+
访问[https://demo.umodoc.com/editor?pane=hide](https://demo.umodoc.com/editor?pane=hide)快速体验。
|
|
28
28
|
|
|
29
29
|
## 开发文档
|
|
30
30
|
|
|
31
|
-
请访问
|
|
31
|
+
请访问[https://editor.umodoc.com/cn/docs](https://editor.umodoc.com/cn/docs)。
|
|
32
32
|
|
|
33
33
|
## 设计理念
|
|
34
34
|
|
|
35
|
-
Umo Editor
|
|
35
|
+
Umo Editor 的诞生旨在解决 Web 应用中文档编辑的复杂性,为 Web 项目提供类似 Microsoft Word 的强大编辑能力,同时保持 Web 应用的便捷性。无论是政企信息管理系统、学术研究撰写、团队文档协作、知识库管理还是个人笔记整理,Umo Editor 都能成为您的得力助手。
|
|
36
36
|
|
|
37
37
|
## 开源优势
|
|
38
38
|
|
|
39
|
-
-
|
|
40
|
-
|
|
39
|
+
- **免费使用**:Umo Editor 基于[MIT 许可证](https://github.com/umo-editor/umo-editor/blob/main/LICENSE)对所有开发者免费开放,无需担心版权问题。
|
|
41
40
|
- **持续更新**:Umo Editor 将持续迭代,不断优化功能,提升用户体验。
|
|
42
|
-
|
|
43
41
|
- **定制化开发**:开源意味着更大的灵活性,开发者可根据项目需求进行定制化开发,打造专属的文档编辑器。
|
|
44
42
|
|
|
45
43
|
## 核心特性
|
|
46
44
|
|
|
47
45
|
- 零配置开箱即用
|
|
48
|
-
-
|
|
46
|
+
- 类似 Microsoft Word 的分页模式
|
|
49
47
|
- 轻量级
|
|
50
|
-
-
|
|
48
|
+
- 所见即所得
|
|
51
49
|
- 富文本编辑功能
|
|
52
50
|
- Markdown 语法支持
|
|
53
51
|
- 实用工具集成
|
|
54
52
|
- 演示模式
|
|
53
|
+
- 文档导出与分享
|
|
55
54
|
- 页面设置
|
|
56
55
|
- AI 文档助手
|
|
57
|
-
- 文档导出与分享
|
|
58
|
-
- 气泡菜单与块级菜单
|
|
59
|
-
- 快捷键支持
|
|
60
56
|
- 支持打印及打印预览
|
|
57
|
+
- 支持自定义扩展
|
|
58
|
+
- 快捷键支持
|
|
61
59
|
- 主题定制
|
|
62
60
|
- 多语言设置
|
|
63
61
|
- 暗色主题
|
|
64
62
|
|
|
65
|
-
更多详细介绍见
|
|
63
|
+
更多详细介绍见[核心特性](https://editor.umodoc.com/cn/docs/features)。
|
|
66
64
|
|
|
67
65
|
## 浏览器支持
|
|
68
66
|
|
|
@@ -76,41 +74,46 @@ Umo Editor 的诞生,旨在解决 Web 应用中文档编辑的复杂性,为
|
|
|
76
74
|
| 各类国产浏览器的极速模式 | 最新版 | ✅ 支持 |
|
|
77
75
|
| Internet Explorer (IE) | 所有 | ❌ 不支持 |
|
|
78
76
|
|
|
79
|
-
##
|
|
77
|
+
## 环境支持
|
|
80
78
|
|
|
81
|
-
|
|
79
|
+
- **Node.js** (>=v18.0.0)
|
|
80
|
+
- **Vue** (>=v3.x)
|
|
81
|
+
- **Vite** (>=v4.x)
|
|
82
|
+
- **Tiptap** (>=v2.6)
|
|
83
|
+
- **TypeScript** (>=v5.5)
|
|
82
84
|
|
|
83
85
|
## 加入社区
|
|
84
86
|
|
|
85
|
-
我们鼓励用户加入 Umo Editor
|
|
87
|
+
我们鼓励用户加入 Umo Editor 的开源社区,共同参与到产品的开发和改进中。无论是提交 Bug 报告、功能请求还是代码贡献,都是我们社区宝贵的一部分。
|
|
86
88
|
|
|
87
|
-
您可以通过 [
|
|
89
|
+
您可以通过 [GitHub Discussions](https://github.com/umodoc/editor/discussions) 提交问题或意见。
|
|
88
90
|
|
|
89
|
-
或通过 [
|
|
91
|
+
或通过 [GitHub Issues](https://github.com/umodoc/editor/issues) 提交 Bug 报告。
|
|
90
92
|
|
|
91
93
|
## 贡献代码
|
|
92
94
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
Umo Editor 的发展,离不开社区的支持,以下是为 Umo Editor 贡献过代码的贡献者名单,向他们致谢:
|
|
95
|
+
Umo Editor 的发展离不开社区的支持,以下是为 Umo Editor 贡献过代码的贡献者名单,向他们致谢:
|
|
96
96
|
|
|
97
97
|
- [Umo Team](https://github.com/umodoc):👨💻 核心开发者
|
|
98
|
-
- [Cassielxd](https://github.com/Cassielxd):💪🏻
|
|
99
|
-
- [
|
|
100
|
-
- [
|
|
101
|
-
- [
|
|
98
|
+
- [Cassielxd](https://github.com/Cassielxd):💪🏻 实现了分页和许多重要功能
|
|
99
|
+
- [china-wangxu](https://github.com/china-wangxu):💪🏻 添加了许多重要功能
|
|
100
|
+
- [Na'aman Hirschfeld](https://github.com/Goldziher):💪🏻 增强了 TypeScript 支持并添加测试
|
|
101
|
+
- [ChenErik](https://github.com/ChenErik):🛠️ 贡献了部分代码
|
|
102
|
+
- [SerRashin](https://github.com/SerRashin):🛠️ 添加了俄语支持
|
|
103
|
+
- [Sunny Wisozk](https://github.com/SunnyWisozk):🛠️ 贡献了部分代码
|
|
104
|
+
- [Sherman Xu](https://github.com/xuzhenjun130):🛠️ 贡献了部分代码
|
|
102
105
|
|
|
103
106
|
我们欢迎任何形式的贡献,包括但不限于提交 Bug 报告、功能请求、代码贡献等。
|
|
104
107
|
|
|
105
108
|
## 联系我们
|
|
106
109
|
|
|
107
|
-
|
|
110
|
+
如果您有任何疑问或建议,请通过以下方式联系我们。在此之前,建议您详细阅读本文档,以便了解如何使用 Umo Editor。
|
|
108
111
|
|
|
109
|
-
- 反馈:[
|
|
110
|
-
- 社区:[
|
|
111
|
-
- 邮件:[contact@
|
|
112
|
+
- 反馈:[GitHub Issues](https://github.com/umodoc/editor/issues)
|
|
113
|
+
- 社区:[GitHub Discussions](https://github.com/umodoc/editor/discussions)
|
|
114
|
+
- 邮件:[contact@umodoc.com](mailto:contact@umodoc.com)
|
|
112
115
|
|
|
113
|
-
## QQ
|
|
116
|
+
## QQ 技术交流群
|
|
114
117
|
|
|
115
118
|
- [Umo Editor 技术交流1群:994500039](https://qm.qq.com/cgi-bin/qm/qr?k=BH_TYEK3Om0BkN4VMT9TQLRvHzEhkUvp&jump_from=webapi&authKey=xIMvInBso7hjJHh8+44+8IMHhLjvpegQJC0wFtZRir76+vgrBFcw98FVoqCxV7XX)
|
|
116
119
|
|
|
@@ -118,13 +121,15 @@ Umo Editor 的发展,离不开社区的支持,以下是为 Umo Editor 贡献
|
|
|
118
121
|
|
|
119
122
|
如果您觉得 Umo Editor 有用,请考虑通过以下方式支持我们:
|
|
120
123
|
|
|
121
|
-
- ⭐ 给
|
|
122
|
-
- 🔗 如果您在项目中使用了 Umo Editor,请添加一个链接到
|
|
124
|
+
- ⭐ 给[Umo Editor 仓库](https://github.com/umodoc/editor)点个 Star,表示对项目的支持。
|
|
125
|
+
- 🔗 如果您在项目中使用了 Umo Editor,请添加一个链接到 https://github.com/umodoc/editor 。
|
|
123
126
|
|
|
124
127
|
## 定制开发
|
|
125
128
|
|
|
126
|
-
|
|
129
|
+
如果您需要定制化开发,请联系我们,我们可以提供付费的定制化解决方案和商业支持。详细信息请访问[定制开发](https://editor.umodoc.com/cn/docs/customization)。
|
|
127
130
|
|
|
128
131
|
## 开源协议
|
|
129
132
|
|
|
130
|
-
Umo Editor 采用 [MIT 许可证](./LICENSE)
|
|
133
|
+
Umo Editor 采用 [MIT 许可证](./LICENSE),您可以免费使用、修改和使用本软件,但这不代表您可以随意删除版权信息,请保留 Umo Editor 的版权信息和界面上的链接地址,否则视为侵权,请支持开源项目。
|
|
134
|
+
|
|
135
|
+
如果您不想保留版权信息,请联系我们或者购买商业版本 [Umo Editor Next](https://editor.umodoc.com/cn/docs/next)。
|