jodit 4.0.0-beta.84 → 4.0.0-beta.86
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/CHANGELOG.md +41 -0
- package/README.md +85 -161
- package/es2015/jodit.css +320 -41
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +2470 -2258
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/debug/debug.js +9 -8
- package/es2015/plugins/debug/debug.min.js +2 -2
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +37 -36
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.css +320 -41
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +2469 -2255
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.js +9 -8
- package/es2018/plugins/debug/debug.min.js +2 -2
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.js +37 -36
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +320 -41
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +2459 -2253
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/debug/debug.js +9 -8
- package/es2021/plugins/debug/debug.min.js +2 -2
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +37 -36
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +320 -41
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +2459 -2253
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/debug/debug.js +9 -8
- package/es2021.en/plugins/debug/debug.min.js +2 -2
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +37 -36
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +400 -103
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +2530 -2312
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.js +9 -8
- package/es5/plugins/debug/debug.min.js +2 -2
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +38 -36
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/esm/core/component/component.d.ts +2 -2
- package/esm/core/constants.js +2 -2
- package/esm/core/dom/dom.js +2 -2
- package/esm/core/helpers/checker/is-marker.d.ts +3 -0
- package/esm/core/helpers/normalize/normalize-size.d.ts +1 -1
- package/esm/core/helpers/normalize/normalize-size.js +2 -2
- package/esm/core/helpers/string/trim.d.ts +1 -0
- package/esm/core/helpers/string/trim.js +5 -0
- package/esm/core/helpers/utils/attr.d.ts +3 -0
- package/esm/core/helpers/utils/css.js +1 -0
- package/esm/core/plugin/interface.d.ts +3 -0
- package/esm/core/selection/style/api/has-same-style.d.ts +1 -1
- package/esm/core/selection/style/api/has-same-style.js +7 -4
- package/esm/core/selection/style/api/is-suit-element.d.ts +7 -2
- package/esm/core/selection/style/api/is-suit-element.js +21 -10
- package/esm/core/selection/style/transactions.d.ts +3 -0
- package/esm/core/selection/style/transactions.js +3 -3
- package/esm/core/storage/engines/local-storage-provider.d.ts +1 -1
- package/esm/core/storage/engines/memory-storage-provider.d.ts +1 -1
- package/esm/core/ui/button/tooltip/tooltip.d.ts +2 -2
- package/esm/core/ui/button/tooltip/tooltip.js +2 -2
- package/esm/core/ui/element.d.ts +1 -1
- package/esm/core/ui/form/block/block.d.ts +1 -1
- package/esm/core/ui/form/block/block.js +1 -1
- package/esm/core/ui/group/group.d.ts +0 -1
- package/esm/core/ui/group/group.js +0 -2
- package/esm/core/ui/group/list.d.ts +1 -0
- package/esm/core/ui/group/list.js +14 -2
- package/esm/core/ui/helpers/get-control-type.js +9 -2
- package/esm/core/ui/popup/popup.d.ts +12 -12
- package/esm/core/ui/popup/popup.js +46 -40
- package/esm/modules/file-browser/config.js +1 -1
- package/esm/modules/image-editor/config.d.ts +3 -0
- package/esm/modules/toolbar/button/button.d.ts +5 -5
- package/esm/modules/toolbar/button/button.js +25 -24
- package/esm/modules/toolbar/button/content.js +1 -1
- package/esm/modules/toolbar/button/index.d.ts +1 -0
- package/esm/modules/toolbar/button/index.js +1 -0
- package/esm/modules/toolbar/button/select/select.d.ts +15 -0
- package/esm/modules/toolbar/button/select/select.js +47 -0
- package/esm/modules/toolbar/collection/collection.d.ts +1 -0
- package/esm/modules/toolbar/collection/collection.js +4 -1
- package/esm/modules/toolbar/factory.d.ts +1 -0
- package/esm/modules/toolbar/factory.js +4 -0
- package/esm/plugins/bold/bold.js +1 -6
- package/esm/plugins/bold/interface.d.ts +3 -0
- package/esm/plugins/class-span/class-span.js +7 -7
- package/esm/plugins/color/config.js +2 -2
- package/esm/plugins/debug/debug.d.ts +1 -1
- package/esm/plugins/delete/interface.d.ts +3 -0
- package/esm/plugins/enter/interface.d.ts +3 -0
- package/esm/plugins/file/file.js +1 -1
- package/esm/plugins/font/config.js +63 -51
- package/esm/plugins/font/font.js +1 -1
- package/esm/plugins/format-block/config.d.ts +6 -0
- package/esm/plugins/format-block/config.js +52 -0
- package/esm/plugins/format-block/format-block.d.ts +1 -0
- package/esm/plugins/format-block/format-block.js +1 -68
- package/esm/plugins/fullsize/config.js +1 -1
- package/esm/plugins/iframe/iframe.js +11 -9
- package/esm/plugins/image/image.js +1 -1
- package/esm/plugins/image-processor/config.js +3 -0
- package/esm/plugins/inline-popup/config/items/cells.js +1 -1
- package/esm/plugins/justify/justify.js +8 -7
- package/esm/plugins/link/config.js +1 -1
- package/esm/plugins/mobile/config.js +3 -3
- package/esm/plugins/search/interface.d.ts +3 -0
- package/esm/plugins/select-cells/select-cells.d.ts +2 -0
- package/esm/plugins/symbols/config.js +1 -1
- package/esm/plugins/table/config.js +2 -1
- package/esm/plugins/video/config.js +1 -1
- package/esm/types/messages.d.ts +8 -0
- package/esm/types/popup.d.ts +3 -3
- package/esm/types/toolbar.d.ts +12 -8
- package/esm/typings.d.ts +0 -1
- package/package.json +1 -1
- package/types/core/component/component.d.ts +2 -2
- package/types/core/helpers/checker/is-marker.d.ts +3 -0
- package/types/core/helpers/normalize/normalize-size.d.ts +1 -1
- package/types/core/helpers/string/trim.d.ts +1 -0
- package/types/core/helpers/utils/attr.d.ts +3 -0
- package/types/core/plugin/interface.d.ts +3 -0
- package/types/core/selection/style/api/has-same-style.d.ts +1 -1
- package/types/core/selection/style/api/is-suit-element.d.ts +7 -2
- package/types/core/selection/style/transactions.d.ts +3 -0
- package/types/core/storage/engines/local-storage-provider.d.ts +1 -1
- package/types/core/storage/engines/memory-storage-provider.d.ts +1 -1
- package/types/core/ui/button/tooltip/tooltip.d.ts +2 -2
- package/types/core/ui/element.d.ts +1 -1
- package/types/core/ui/form/block/block.d.ts +1 -1
- package/types/core/ui/group/group.d.ts +0 -1
- package/types/core/ui/group/list.d.ts +1 -0
- package/types/core/ui/popup/popup.d.ts +12 -12
- package/types/modules/image-editor/config.d.ts +3 -0
- package/types/modules/toolbar/button/button.d.ts +5 -5
- package/types/modules/toolbar/button/index.d.ts +1 -0
- package/types/modules/toolbar/button/select/select.d.ts +15 -0
- package/types/modules/toolbar/collection/collection.d.ts +1 -0
- package/types/modules/toolbar/factory.d.ts +1 -0
- package/types/plugins/bold/interface.d.ts +3 -0
- package/types/plugins/debug/debug.d.ts +1 -1
- package/types/plugins/delete/interface.d.ts +3 -0
- package/types/plugins/enter/interface.d.ts +3 -0
- package/types/plugins/format-block/config.d.ts +6 -0
- package/types/plugins/format-block/format-block.d.ts +1 -0
- package/types/plugins/search/interface.d.ts +3 -0
- package/types/plugins/select-cells/select-cells.d.ts +2 -0
- package/types/types/messages.d.ts +8 -0
- package/types/types/popup.d.ts +3 -3
- package/types/types/toolbar.d.ts +12 -8
- package/types/typings.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,47 @@
|
|
|
9
9
|
> - :house: [Internal]
|
|
10
10
|
> - :nail_care: [Polish]
|
|
11
11
|
|
|
12
|
+
## 4.0.0-beta.78
|
|
13
|
+
|
|
14
|
+
- Update
|
|
15
|
+
```
|
|
16
|
+
@types/karma ^6.3.3 → ^6.3.4
|
|
17
|
+
@types/node ^20.1.0 → ^20.5.0
|
|
18
|
+
@typescript-eslint/eslint-plugin ^5.59.2 → ^6.4.0
|
|
19
|
+
@typescript-eslint/parser ^5.59.2 → ^6.4.0
|
|
20
|
+
autoprefixer ^10.4.14 → ^10.4.15
|
|
21
|
+
core-js ^3.30.2 → ^3.32.0
|
|
22
|
+
css-loader ^6.7.3 → ^6.8.1
|
|
23
|
+
css-minimizer-webpack-plugin ^5.0.0 → ^5.0.1
|
|
24
|
+
eslint ^8.40.0 → ^8.47.0
|
|
25
|
+
eslint-config-prettier ^8.8.0 → ^9.0.0
|
|
26
|
+
eslint-plugin-import ^2.27.5 → ^2.28.0
|
|
27
|
+
eslint-plugin-prettier ^4.2.1 → ^5.0.0
|
|
28
|
+
glob ^10.2.2 → ^10.3.3
|
|
29
|
+
less ^4.1.3 → ^4.2.0
|
|
30
|
+
less-loader ^11.1.0 → ^11.1.3
|
|
31
|
+
lint-staged ^13.2.2 → ^14.0.0
|
|
32
|
+
mini-css-extract-plugin ^2.7.5 → ^2.7.6
|
|
33
|
+
node-jq ^2.3.5 → ^4.0.1
|
|
34
|
+
postcss >=8.4.23 → >=8.4.27
|
|
35
|
+
postcss-loader ^7.3.0 → ^7.3.3
|
|
36
|
+
prettier ^2.8.8 → ^3.0.1
|
|
37
|
+
style-loader ^3.3.2 → ^3.3.3
|
|
38
|
+
stylelint ^15.6.1 → ^15.10.2
|
|
39
|
+
stylelint-config-standard ^33.0.0 → ^34.0.0
|
|
40
|
+
stylelint-prettier ^3.0.0 → ^4.0.2
|
|
41
|
+
synchronous-promise 2.0.15 → 2.0.17
|
|
42
|
+
terser-webpack-plugin ^5.3.8 → ^5.3.9
|
|
43
|
+
ts-loader ^9.4.2 → ^9.4.4
|
|
44
|
+
tslib ^2.5.0 → ^2.6.1
|
|
45
|
+
typescript ^5.0.4 → ^5.1.6
|
|
46
|
+
webpack 5.82.0 → 5.88.2
|
|
47
|
+
webpack-cli ^5.1.0 → ^5.1.4
|
|
48
|
+
webpack-dev-middleware ^6.1.0 → ^6.1.1
|
|
49
|
+
webpack-dev-server ^4.15.0 → ^4.15.1
|
|
50
|
+
webpack-hot-middleware ^2.25.3 → ^2.25.4
|
|
51
|
+
```
|
|
52
|
+
|
|
12
53
|
## 4.0.0-beta.77
|
|
13
54
|
|
|
14
55
|
### :bug: Bug Fix
|
package/README.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
# Jodit Editor
|
|
3
|
+
# Jodit Editor
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Jodit Editor is an excellent WYSIWYG editor written in pure TypeScript
|
|
6
|
+
without the use of additional libraries. It includes a file editor and image editor.
|
|
6
7
|
|
|
7
8
|
[](https://github.com/xdan/jodit/actions/workflows/tests.yml)
|
|
8
9
|
[](https://badge.fury.io/js/jodit)
|
|
@@ -11,7 +12,7 @@ An excellent WYSIWYG editor written in pure TypeScript without the use of additi
|
|
|
11
12
|
- [Demo and Official site](https://xdsoft.net/jodit/)
|
|
12
13
|
- [PRO Version](https://xdsoft.net/jodit/pro/)
|
|
13
14
|
- [Builder](https://xdsoft.net/jodit/builder/)
|
|
14
|
-
- [Playground -
|
|
15
|
+
- [Playground - Play with Options](https://xdsoft.net/jodit/play.html)
|
|
15
16
|
- [Documentation](https://xdsoft.net/jodit/docs/)
|
|
16
17
|
- [Download & Changes](https://github.com/xdan/jodit/releases)
|
|
17
18
|
- [Changelog](https://github.com/xdan/jodit/blob/main/CHANGELOG.md)
|
|
@@ -20,84 +21,84 @@ An excellent WYSIWYG editor written in pure TypeScript without the use of additi
|
|
|
20
21
|
|
|
21
22
|
## Get Started
|
|
22
23
|
|
|
23
|
-
## How
|
|
24
|
+
## How to Use
|
|
24
25
|
|
|
25
|
-
Download the latest [release](https://github.com/xdan/jodit/releases/latest) or
|
|
26
|
+
Download the latest [release](https://github.com/xdan/jodit/releases/latest) or via npm:
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
```bash
|
|
28
|
+
```sh
|
|
30
29
|
npm install jodit
|
|
31
30
|
```
|
|
32
31
|
|
|
33
|
-
You will get:
|
|
32
|
+
You will get the following files:
|
|
34
33
|
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
34
|
+
- Inside `/esm`: ESM version of the editor (compatible with tools like webpack)
|
|
35
|
+
- Inside `/es5`, `/es2015`, `/es2018`, `/es2021`: UMD bundled files (not minified)
|
|
36
|
+
- Inside `/es5`, `/es2015`, `/es2018`, `/es2021` with `.min.js` extension: UMD bundled and minified files
|
|
37
|
+
- `types/index.d.ts`: This file specifies the API of the editor. It is versioned, while everything else is considered private and may change with each release.
|
|
39
38
|
|
|
40
|
-
### Include
|
|
39
|
+
### Include Jodit in Your Project
|
|
41
40
|
|
|
42
|
-
|
|
41
|
+
Include the following two files:
|
|
42
|
+
|
|
43
|
+
ES5 Version:
|
|
43
44
|
|
|
44
45
|
```html
|
|
45
46
|
<link type="text/css" rel="stylesheet" href="es2015/jodit.min.css" />
|
|
46
47
|
<script type="text/javascript" src="es2015/jodit.min.js"></script>
|
|
47
48
|
```
|
|
48
49
|
|
|
49
|
-
|
|
50
|
+
ES2021 Version (for modern browsers only):
|
|
50
51
|
|
|
51
52
|
```html
|
|
52
53
|
<link type="text/css" rel="stylesheet" href="es2021/jodit.min.css" />
|
|
53
54
|
<script type="text/javascript" src="es2021/jodit.min.js"></script>
|
|
54
55
|
```
|
|
55
56
|
|
|
56
|
-
|
|
57
|
+
ESM Modules:
|
|
57
58
|
|
|
58
59
|
```html
|
|
59
60
|
<script type="importmap">
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
{
|
|
62
|
+
"imports": {
|
|
63
|
+
"autobind-decorator": "https://unpkg.com/autobind-decorator@2.4.0/lib/esm/index.js"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
65
66
|
</script>
|
|
66
|
-
<link rel="stylesheet" href="./node_modules/jodit/es2021/jodit.min.css"/>
|
|
67
|
+
<link rel="stylesheet" href="./node_modules/jodit/es2021/jodit.min.css" />
|
|
67
68
|
<script type="module">
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
import { Jodit } from './node_modules/jodit/esm/index.js';
|
|
70
|
+
Jodit.make('#editor', {
|
|
71
|
+
width: 600,
|
|
72
|
+
height: 400
|
|
73
|
+
});
|
|
73
74
|
</script>
|
|
74
75
|
```
|
|
75
76
|
|
|
76
|
-
ESM automatically
|
|
77
|
-
You can
|
|
77
|
+
The ESM modules automatically include only the basic set of plugins and the English language.
|
|
78
|
+
You can manually include additional plugins and languages as needed.
|
|
78
79
|
|
|
79
80
|
```html
|
|
80
81
|
<script type="importmap">
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
{
|
|
83
|
+
"imports": {
|
|
84
|
+
"autobind-decorator": "https://unpkg.com/autobind-decorator@2.4.0/lib/esm/index.js"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
86
87
|
</script>
|
|
87
|
-
<link rel="stylesheet" href="./node_modules/jodit/es2021/jodit.min.css"/>
|
|
88
|
+
<link rel="stylesheet" href="./node_modules/jodit/es2021/jodit.min.css" />
|
|
88
89
|
<script type="module">
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
90
|
+
import { Jodit } from './node_modules/jodit/esm/index.js';
|
|
91
|
+
import './node_modules/jodit/esm/plugins/add-new-line/add-new-line.js';
|
|
92
|
+
import './node_modules/jodit/esm/plugins/fullsize/fullsize.js';
|
|
93
|
+
import de from './node_modules/jodit/esm/langs/de.js';
|
|
94
|
+
|
|
95
|
+
Jodit.langs.de = de;
|
|
96
|
+
|
|
97
|
+
Jodit.make('#editor', {
|
|
98
|
+
width: 600,
|
|
99
|
+
height: 400,
|
|
100
|
+
language: 'de'
|
|
101
|
+
});
|
|
101
102
|
</script>
|
|
102
103
|
```
|
|
103
104
|
|
|
@@ -108,137 +109,36 @@ You can connect the necessary plugins and languages yourself:
|
|
|
108
109
|
```html
|
|
109
110
|
<link
|
|
110
111
|
rel="stylesheet"
|
|
111
|
-
href="https://cdnjs.cloudflare.com/ajax/libs/jodit/4.0.0-beta.
|
|
112
|
+
href="https://cdnjs.cloudflare.com/ajax/libs/jodit/4.0.0-beta.86/es2021/jodit.min.css"
|
|
112
113
|
/>
|
|
113
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jodit/4.0.0-beta.
|
|
114
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jodit/4.0.0-beta.86/es2021/jodit.min.js"></script>
|
|
114
115
|
```
|
|
115
116
|
|
|
116
117
|
#### unpkg
|
|
117
118
|
|
|
118
|
-
|
|
119
119
|
```html
|
|
120
120
|
<link
|
|
121
121
|
rel="stylesheet"
|
|
122
|
-
href="https://unpkg.com/jodit@4.0.0-beta.
|
|
122
|
+
href="https://unpkg.com/jodit@4.0.0-beta.86/es2021/jodit.min.css"
|
|
123
123
|
/>
|
|
124
|
-
<script src="https://unpkg.com/jodit@4.0.0-beta.
|
|
124
|
+
<script src="https://unpkg.com/jodit@4.0.0-beta.86/es2021/jodit.min.js"></script>
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
+
### Usage
|
|
127
128
|
|
|
128
|
-
|
|
129
|
-
### USAGE
|
|
130
|
-
|
|
131
|
-
And some `<textarea>` element
|
|
129
|
+
Add a <textarea> element to your HTML:
|
|
132
130
|
|
|
133
131
|
```html
|
|
134
132
|
<textarea id="editor" name="editor"></textarea>
|
|
135
133
|
```
|
|
136
134
|
|
|
137
|
-
|
|
135
|
+
Initialize Jodit on the textarea:
|
|
138
136
|
|
|
139
137
|
```javascript
|
|
140
138
|
const editor = Jodit.make('#editor');
|
|
141
139
|
editor.value = '<p>start</p>';
|
|
142
140
|
```
|
|
143
141
|
|
|
144
|
-
with jQuery
|
|
145
|
-
|
|
146
|
-
```javascript
|
|
147
|
-
$('textarea').each(function () {
|
|
148
|
-
const editor = Jodit.make(this);
|
|
149
|
-
editor.value = '<p>start</p>';
|
|
150
|
-
});
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
## For contributors:
|
|
154
|
-
|
|
155
|
-
```bash
|
|
156
|
-
git clone https://github.com/xdan/jodit.git
|
|
157
|
-
cd jodit
|
|
158
|
-
npm ci
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
Run webpack Hot Reload server:
|
|
162
|
-
|
|
163
|
-
```bash
|
|
164
|
-
npm start
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
Demo will be available here
|
|
168
|
-
|
|
169
|
-
```
|
|
170
|
-
http://localhost:2000/
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
Build min files:
|
|
174
|
-
|
|
175
|
-
```bash
|
|
176
|
-
make build
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
Build without some plugins:
|
|
180
|
-
|
|
181
|
-
```bash
|
|
182
|
-
make build es=es2021 uglify=true excludePlugins="about,source,bold,image,xpath,stat,class-span,color,clean-html,file,focus,enter,backspace,media,preview,pint,redo-undo,resize-cells,search,spellcheck,table"
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
Build without some languages:
|
|
186
|
-
|
|
187
|
-
```bash
|
|
188
|
-
make build es=es2021 uglify=true excludeLanguages="ru,ar,cs_cz,de,es,fa,fr,he,hu,id,it,ja,ko,nl,pl,pt_br,ru,tr,zh_cn,zh_tw"
|
|
189
|
-
```
|
|
190
|
-
|
|
191
|
-
Run tests:
|
|
192
|
-
|
|
193
|
-
```bash
|
|
194
|
-
make test browsers ChromeHeadless,IE,Firefox
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
or
|
|
198
|
-
|
|
199
|
-
```bash
|
|
200
|
-
make test
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
or
|
|
204
|
-
|
|
205
|
-
```bash
|
|
206
|
-
npm test
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
For checking tests in browser, open URL:
|
|
210
|
-
|
|
211
|
-
```
|
|
212
|
-
http://localhost:2000/test/test.html
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
For testing FileBrowser and Uploader modules, need install [PHP Connector](https://github.com/xdan/jodit-connectors)
|
|
216
|
-
|
|
217
|
-
```bash
|
|
218
|
-
composer create-project --no-dev jodit/connector
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
Run test PHP server
|
|
222
|
-
|
|
223
|
-
```bash
|
|
224
|
-
php -S localhost:8181 -t ./
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
and set options for Jodit:
|
|
228
|
-
|
|
229
|
-
```javascript
|
|
230
|
-
const editor = Jodit.make('#editor', {
|
|
231
|
-
uploader: {
|
|
232
|
-
url: 'http://localhost:8181/index-test.php?action=fileUpload'
|
|
233
|
-
},
|
|
234
|
-
filebrowser: {
|
|
235
|
-
ajax: {
|
|
236
|
-
url: 'http://localhost:8181/index-test.php'
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
```
|
|
241
|
-
|
|
242
142
|
### Create plugin
|
|
243
143
|
|
|
244
144
|
```javascript
|
|
@@ -337,6 +237,35 @@ const editor = Jodit.make('.someselector', {
|
|
|
337
237
|
});
|
|
338
238
|
```
|
|
339
239
|
|
|
240
|
+
## FileBrowser and Uploader
|
|
241
|
+
|
|
242
|
+
For testing FileBrowser and Uploader modules, need install [PHP Connector](https://github.com/xdan/jodit-connectors)
|
|
243
|
+
|
|
244
|
+
```bash
|
|
245
|
+
composer create-project --no-dev jodit/connector
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
Run test PHP server
|
|
249
|
+
|
|
250
|
+
```bash
|
|
251
|
+
php -S localhost:8181 -t ./
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
and set options for Jodit:
|
|
255
|
+
|
|
256
|
+
```javascript
|
|
257
|
+
const editor = Jodit.make('#editor', {
|
|
258
|
+
uploader: {
|
|
259
|
+
url: 'http://localhost:8181/index-test.php?action=fileUpload'
|
|
260
|
+
},
|
|
261
|
+
filebrowser: {
|
|
262
|
+
ajax: {
|
|
263
|
+
url: 'http://localhost:8181/index-test.php'
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
```
|
|
268
|
+
|
|
340
269
|
## Browser Support
|
|
341
270
|
|
|
342
271
|
- Internet Explorer 11
|
|
@@ -345,11 +274,6 @@ const editor = Jodit.make('.someselector', {
|
|
|
345
274
|
- Latest Safari
|
|
346
275
|
- Microsoft Edge
|
|
347
276
|
|
|
348
|
-
## Contributing
|
|
349
|
-
|
|
350
|
-
This project is maintained by a community of developers. Contributions are welcome and appreciated. You can find Jodit on GitHub; feel free to start an issue or create a pull requests:
|
|
351
|
-
https://github.com/xdan/jodit
|
|
352
|
-
|
|
353
277
|
## License
|
|
354
278
|
|
|
355
279
|
MIT
|