@opentiny/fluent-editor 3.17.0 → 3.17.2-alpha.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/dist/index.cjs.js +372 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.es.js +51007 -0
- package/dist/index.es.js.map +1 -0
- package/dist/style.css +4 -3
- package/package.json +79 -59
- package/README.md +0 -53
- package/dist/index.js +0 -15490
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -26145
- package/dist/index.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,60 +1,80 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@opentiny/fluent-editor",
|
|
3
|
-
"version": "3.17.0",
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@opentiny/fluent-editor",
|
|
3
|
+
"version": "3.17.2-alpha.0",
|
|
4
|
+
"description": "A rich text editor based on Quill 2.0, which extends rich modules and formats on the basis of Quill. It's powerful and out-of-the-box.",
|
|
5
|
+
"homepage": "https://opentiny.github.io/fluent-editor/",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"editor",
|
|
8
|
+
"rich-text-editor",
|
|
9
|
+
"rich-text",
|
|
10
|
+
"wysiwyg",
|
|
11
|
+
"wysiwyg-editor",
|
|
12
|
+
"quill",
|
|
13
|
+
"opentiny",
|
|
14
|
+
"fluent-editor"
|
|
15
|
+
],
|
|
16
|
+
"author": "OpenTiny Team",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git@github.com:opentiny/fluent-editor.git"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/opentiny/fluent-editor/issues"
|
|
24
|
+
},
|
|
25
|
+
"main": "dist/index.cjs.js",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist/*"
|
|
28
|
+
],
|
|
29
|
+
"module": "dist/index.es.js",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"import": "./dist/index.es.js",
|
|
33
|
+
"require": "./dist/index.cjs.js"
|
|
34
|
+
},
|
|
35
|
+
"./dist/style.css": {
|
|
36
|
+
"import": "./dist/style.css",
|
|
37
|
+
"require": "./dist/style.css"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"start": "vite build && vite",
|
|
42
|
+
"dev": "vite",
|
|
43
|
+
"build": "vite build",
|
|
44
|
+
"test": "jest",
|
|
45
|
+
"format": "prettier './{src,test}/**/*.{js,ts,tsx,vue}' --write"
|
|
46
|
+
},
|
|
47
|
+
"gitHooks": {
|
|
48
|
+
"pre-commit": "lint-staged",
|
|
49
|
+
"commit-msg": "node verifyCommit.js"
|
|
50
|
+
},
|
|
51
|
+
"lint-staged": {
|
|
52
|
+
"*.ts": [
|
|
53
|
+
"eslint --fix",
|
|
54
|
+
"git add"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@types/jest": "^26.0.23",
|
|
59
|
+
"@types/node": "^15.0.2",
|
|
60
|
+
"@types/quill": "^2.0.9",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^5.7.0",
|
|
62
|
+
"@typescript-eslint/parser": "^5.7.0",
|
|
63
|
+
"eslint": "^8.5.0",
|
|
64
|
+
"jest": "^26.6.3",
|
|
65
|
+
"lint-staged": "^12.1.4",
|
|
66
|
+
"lodash-es": "^4.17.15",
|
|
67
|
+
"prettier": "^2.3.0",
|
|
68
|
+
"sass": "^1.47.0",
|
|
69
|
+
"ts-jest": "^26.5.6",
|
|
70
|
+
"ts-node": "^9.1.1",
|
|
71
|
+
"typescript": "^4.2.4",
|
|
72
|
+
"vite": "^2.3.0"
|
|
73
|
+
},
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"highlight.js": "^10.2.0",
|
|
76
|
+
"html2canvas": "^1.0.0-rc.7",
|
|
77
|
+
"quill": "^2.0.0",
|
|
78
|
+
"quill-delta": "^5.1.0"
|
|
79
|
+
}
|
|
60
80
|
}
|
package/README.md
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# FluentEditor 富文本编辑器
|
|
2
|
-
|
|
3
|
-
FluentEditor 是一个基于 Quill 2.0 的富文本编辑器,在 Quill 基础上扩展了表格、图片、超链接、复制粘贴、插入表情、文件上传、@提醒、斜杆菜单等丰富的模块和格式,框架无关、兼容 Quill API、兼容 Quill 模块生态。
|
|
4
|
-
|
|
5
|
-
## 项目优势
|
|
6
|
-
|
|
7
|
-
FluentEditor 主要有以下特点和优势:
|
|
8
|
-
|
|
9
|
-
* 包含30多种丰富的模块和格式,除了 Quill 内置的21种格式之外,还扩展和增强了表格、图片、超链接、字数统计、表情、文件上传、复制粘贴、@提醒、斜杆快捷菜单、截图等15种模块和格式
|
|
10
|
-
* 强大的表格功能,支持在工具栏插入指定行列的表格、表格行高/列宽拖拽、插入行/列、删除行/列、合并/拆分单元格等丰富的表格操作
|
|
11
|
-
* 与框架无关,可以在 Vue、React、Angular 等多种框架中使用
|
|
12
|
-
* 兼容 Quill 所有 API,兼容 Quill 生态模块和格式
|
|
13
|
-
|
|
14
|
-
## 快速入门
|
|
15
|
-
|
|
16
|
-
安装 FluentEditor:
|
|
17
|
-
|
|
18
|
-
```shell
|
|
19
|
-
npm i @opentiny/fluent-editor
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
编写html:
|
|
23
|
-
|
|
24
|
-
```html
|
|
25
|
-
<div id="editor">
|
|
26
|
-
<p>Hello FluentEditor!</p>
|
|
27
|
-
</div>
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
引入样式:
|
|
31
|
-
|
|
32
|
-
```css
|
|
33
|
-
@import '@opentiny/fluent-editor/dist/style.css'
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
初始化 FluentEditor 编辑器:
|
|
37
|
-
|
|
38
|
-
```javascript
|
|
39
|
-
import FluentEditor from '@opentiny/fluent-editor'
|
|
40
|
-
|
|
41
|
-
const editor = new FluentEditor('#editor', {
|
|
42
|
-
theme: 'snow'
|
|
43
|
-
})
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## ❤️ 致谢
|
|
47
|
-
|
|
48
|
-
感谢:
|
|
49
|
-
|
|
50
|
-
- [quill](https://github.com/slab/quill) 项目,它是一款API驱动的富文本编辑器,采用模块化架构,可扩展性好,易于使用,支持跨平台,FluentEditor 基于 Quill 扩展和增强了表格、图片、超链接等大量模块和格式。
|
|
51
|
-
- [quill-better-table](https://github.com/soccerloway/quill-better-table) 项目,它增强了 Quill 内置表格模块,增加了丰富的功能,FluentEditor 的表格操作功能基于 quill-better-table。
|
|
52
|
-
- [quill-emoji](https://github.com/contentco/quill-emoji) 项目,它是一个用于表情符号的 Quill 模块,FluentEditor 的插入表情功能基于 quill-emoji。
|
|
53
|
-
- [quill-blot-formatter](https://github.com/Fandom-OSS/quill-blot-formatter) 项目,它是一个用于调整图像和视频大小的 Quill 模块,FluentEditor 的图片缩放功能基于 quill-blot-formatter。
|