@opentiny/fluent-editor 3.17.2-alpha.0 → 3.17.2-alpha.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 +64 -0
- package/package.json +78 -79
- /package/{dist/index.cjs.js → index.cjs.js} +0 -0
- /package/{dist/index.cjs.js.map → index.cjs.js.map} +0 -0
- /package/{dist/index.es.js → index.es.js} +0 -0
- /package/{dist/index.es.js.map → index.es.js.map} +0 -0
- /package/{dist/style.css → style.css} +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# FluentEditor
|
|
2
|
+
|
|
3
|
+
FluentEditor is a rich text editor based on Quill 2.0, which extends Quill with rich modules and formats such as tables, images, hyperlinks, copy and paste, inserting emoticons, file uploads, @ reminders, and diagonal menu. It is framework-independent, compatible with Quill API, and compatible with Quill module ecosystem.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
FluentEditor has the following features and advantages:
|
|
8
|
+
|
|
9
|
+
- Contains more than 30 rich modules and formats, in addition to the 21 built-in formats in Quill, it also extends and enhances 15 modules and formats such as tables, images, hyperlinks, word counts, emoticons, file uploads, copy and paste, @ reminders, slash shortcut menus, screenshots, etc
|
|
10
|
+
- Powerful table function, supports inserting tables with specified rows and columns in the toolbar, table row height/column width dragging, inserting rows/columns, deleting rows/columns, merging/splitting cells, and other rich table operations
|
|
11
|
+
- It is not related to frameworks and can be used in multiple frameworks such as Vue, React, Angular, etc
|
|
12
|
+
- Compatible with all Quill APIs, Quill ecosystem modules and formats
|
|
13
|
+
|
|
14
|
+
## Quick Start
|
|
15
|
+
|
|
16
|
+
Install FluentEditor:
|
|
17
|
+
|
|
18
|
+
```shell
|
|
19
|
+
npm i @opentiny/fluent-editor
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Write html:
|
|
23
|
+
|
|
24
|
+
```html
|
|
25
|
+
<div id="editor">
|
|
26
|
+
<p>Hello FluentEditor!</p>
|
|
27
|
+
</div>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Import style:
|
|
31
|
+
|
|
32
|
+
```css
|
|
33
|
+
@import '@opentiny/fluent-editor/dist/style.css'
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Initialize the FluentEditor editor:
|
|
37
|
+
|
|
38
|
+
```javascript
|
|
39
|
+
import FluentEditor from '@opentiny/fluent-editor'
|
|
40
|
+
|
|
41
|
+
const editor = new FluentEditor('#editor', {
|
|
42
|
+
theme: 'snow'
|
|
43
|
+
})
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Development
|
|
47
|
+
|
|
48
|
+
```shell
|
|
49
|
+
git clone git@github.com:opentiny/fluent-editor.git
|
|
50
|
+
cd fluent-editor
|
|
51
|
+
pnpm i
|
|
52
|
+
pnpm dev
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Open your browser and visit: [http://localhost:5173/fluent-editor/](http://localhost:5173/fluent-editor/)
|
|
56
|
+
|
|
57
|
+
## ❤️ Credits
|
|
58
|
+
|
|
59
|
+
Thanks to:
|
|
60
|
+
|
|
61
|
+
- The [quill](https://github.com/slab/quill) project, which is an API-driven rich text editor with a modular architecture, good scalability, ease of use, and cross-platform support. FluentEditor extends and enhances a large number of modules and formats such as tables, images, and hyperlinks based on Quill.
|
|
62
|
+
- The [quill-better-table](https://github.com/soccerloway/quill-better-table) project, which enhances the built-in table module of Quill and adds rich functionality. FluentEditor's table operation functionality is based on quill-better-table.
|
|
63
|
+
- The [quill-emoji](https://github.com/contentco/quill-emoji) project, which is a Quill module for emoji. FluentEditor's insert emoji function is based on quill-emoji.
|
|
64
|
+
- The [quill-blot-formatter](https://github.com/Fandom-OSS/quill-blot-formatter) project, which is a Quill module for resizing images and videos. FluentEditor's image scaling function is based on quill-blot-formatter.
|
package/package.json
CHANGED
|
@@ -1,80 +1,79 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@opentiny/fluent-editor",
|
|
3
|
-
"version": "3.17.2-alpha.
|
|
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": "
|
|
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
|
-
"@
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"ts-
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"quill": "^
|
|
78
|
-
|
|
79
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@opentiny/fluent-editor",
|
|
3
|
+
"version": "3.17.2-alpha.1",
|
|
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": "index.cjs.js",
|
|
26
|
+
"module": "index.es.js",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"import": "./index.es.js",
|
|
30
|
+
"require": "./index.cjs.js"
|
|
31
|
+
},
|
|
32
|
+
"./style.css": {
|
|
33
|
+
"import": "./style.css",
|
|
34
|
+
"require": "./style.css"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"start": "vite build && vite",
|
|
39
|
+
"dev": "vite",
|
|
40
|
+
"build": "vite build && node scripts/pre-release.js",
|
|
41
|
+
"test": "jest",
|
|
42
|
+
"format": "prettier './{src,test}/**/*.{js,ts,tsx,vue}' --write"
|
|
43
|
+
},
|
|
44
|
+
"gitHooks": {
|
|
45
|
+
"pre-commit": "lint-staged",
|
|
46
|
+
"commit-msg": "node verifyCommit.js"
|
|
47
|
+
},
|
|
48
|
+
"lint-staged": {
|
|
49
|
+
"*.ts": [
|
|
50
|
+
"eslint --fix",
|
|
51
|
+
"git add"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@types/jest": "^26.0.23",
|
|
56
|
+
"@types/node": "^15.0.2",
|
|
57
|
+
"@types/quill": "^2.0.9",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^5.7.0",
|
|
59
|
+
"@typescript-eslint/parser": "^5.7.0",
|
|
60
|
+
"commander": "^6.2.0",
|
|
61
|
+
"eslint": "^8.5.0",
|
|
62
|
+
"jest": "^26.6.3",
|
|
63
|
+
"lint-staged": "^12.1.4",
|
|
64
|
+
"lodash-es": "^4.17.15",
|
|
65
|
+
"prettier": "^2.3.0",
|
|
66
|
+
"sass": "^1.47.0",
|
|
67
|
+
"shelljs": "^0.8.4",
|
|
68
|
+
"ts-jest": "^26.5.6",
|
|
69
|
+
"ts-node": "^9.1.1",
|
|
70
|
+
"typescript": "^4.2.4",
|
|
71
|
+
"vite": "^2.3.0"
|
|
72
|
+
},
|
|
73
|
+
"dependencies": {
|
|
74
|
+
"highlight.js": "^10.2.0",
|
|
75
|
+
"html2canvas": "^1.0.0-rc.7",
|
|
76
|
+
"quill": "^2.0.0",
|
|
77
|
+
"quill-delta": "^5.1.0"
|
|
78
|
+
}
|
|
80
79
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|