jodit 4.7.3 → 4.7.5

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 (58) hide show
  1. package/CHANGELOG.md +46 -31
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +4 -4
  4. package/es2015/jodit.js +22 -14
  5. package/es2015/jodit.min.js +4 -4
  6. package/es2015/plugins/debug/debug.css +1 -1
  7. package/es2015/plugins/debug/debug.js +1 -1
  8. package/es2015/plugins/debug/debug.min.js +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  12. package/es2018/jodit.fat.min.js +4 -4
  13. package/es2018/jodit.min.js +4 -4
  14. package/es2018/plugins/debug/debug.min.js +1 -1
  15. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  16. package/es2021/jodit.css +1 -1
  17. package/es2021/jodit.fat.min.js +5 -5
  18. package/es2021/jodit.js +22 -14
  19. package/es2021/jodit.min.js +5 -5
  20. package/es2021/plugins/debug/debug.css +1 -1
  21. package/es2021/plugins/debug/debug.js +1 -1
  22. package/es2021/plugins/debug/debug.min.js +1 -1
  23. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  24. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  25. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  26. package/es2021.en/jodit.css +1 -1
  27. package/es2021.en/jodit.fat.min.js +5 -5
  28. package/es2021.en/jodit.js +22 -14
  29. package/es2021.en/jodit.min.js +5 -5
  30. package/es2021.en/plugins/debug/debug.css +1 -1
  31. package/es2021.en/plugins/debug/debug.js +1 -1
  32. package/es2021.en/plugins/debug/debug.min.js +1 -1
  33. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  34. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  35. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  36. package/es5/jodit.css +2 -2
  37. package/es5/jodit.fat.min.js +2 -2
  38. package/es5/jodit.js +24 -14
  39. package/es5/jodit.min.css +2 -2
  40. package/es5/jodit.min.js +2 -2
  41. package/es5/plugins/debug/debug.css +1 -1
  42. package/es5/plugins/debug/debug.js +1 -1
  43. package/es5/plugins/debug/debug.min.js +1 -1
  44. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  45. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  46. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  47. package/es5/polyfills.fat.min.js +1 -1
  48. package/es5/polyfills.js +1 -1
  49. package/es5/polyfills.min.js +1 -1
  50. package/esm/core/constants.js +1 -1
  51. package/esm/core/view/view.d.ts +1 -1
  52. package/esm/jodit.js +2 -1
  53. package/esm/modules/uploader/helpers/send.js +17 -11
  54. package/esm/modules/widget/file-selector/file-selector.js +5 -3
  55. package/esm/types/uploader.d.ts +14 -0
  56. package/package.json +1 -1
  57. package/types/core/view/view.d.ts +1 -1
  58. package/types/types/uploader.d.ts +14 -0
package/CHANGELOG.md CHANGED
@@ -9,6 +9,23 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.7.5
13
+
14
+ #### :rocket: New Feature
15
+
16
+ - Added method `uploader.customUploadFunction`. This method can be used to replace the function of uploading files
17
+ ```javascript
18
+ Jodit.make('#editor', {
19
+ uploader: {
20
+ customUploadFunction: (requestData, showProgress) =>
21
+ fetch(requestData).then(res => {
22
+ showProgress(100);
23
+ return res.json();
24
+ })
25
+ }
26
+ });
27
+ ```
28
+
12
29
  ## 4.7.1
13
30
 
14
31
  #### :boom: Breaking Change
@@ -17,7 +34,6 @@
17
34
  You can include them manually by importing `jodit/es5/polyfills.min.js`
18
35
  - Use `swc-loader` for build instead of `ts-loader` for better performance and smaller bundle size.
19
36
 
20
-
21
37
  #### :house: Internal
22
38
 
23
39
  ```
@@ -70,8 +86,8 @@
70
86
  #### :rocket: New Feature and :boom: Breaking Change
71
87
 
72
88
  - Added `table.splitBlockOnInsertTable` option to control table insertion behavior ([#1295](https://github.com/xdan/jodit/issues/1295))
73
- - When `true` (default): splits the current block when inserting a table
74
- - When `false`: inserts table after the current block without splitting it
89
+ - When `true` (default): splits the current block when inserting a table
90
+ - When `false`: inserts table after the current block without splitting it
75
91
 
76
92
  ## 4.6.14
77
93
 
@@ -82,10 +98,9 @@
82
98
  #### :bug: Bug Fix
83
99
 
84
100
  - Fixed HTML structure destruction when applying inline styles to partial text selections within block elements
85
- - Prevented block elements (divs, paragraphs) from being split into multiple fragments when applying inline styles
86
- - Modified style application to create proper span wrappers inside existing elements instead of extracting parts
87
- - Preserves block element structure while allowing style application (PR #1284)
88
-
101
+ - Prevented block elements (divs, paragraphs) from being split into multiple fragments when applying inline styles
102
+ - Modified style application to create proper span wrappers inside existing elements instead of extracting parts
103
+ - Preserves block element structure while allowing style application (PR #1284)
89
104
 
90
105
  ## 4.6.12
91
106
 
@@ -98,15 +113,15 @@ Remove reconcileArrays functionality and associated tests
98
113
  #### :rocket: New Feature
99
114
 
100
115
  - Added ability to insert UI elements at specific index positions in UIGroup using the `append` method
101
- - `group.append(element, 0)` - inserts at the beginning
102
- - `group.append(element, index)` - inserts at specific position
103
- - Maintains backward compatibility with existing `append(element, distElement)` usage
116
+ - `group.append(element, 0)` - inserts at the beginning
117
+ - `group.append(element, index)` - inserts at specific position
118
+ - Maintains backward compatibility with existing `append(element, distElement)` usage
104
119
 
105
120
  - Added array reconciliation utilities in `core/helpers/array`
106
- - `reconcileArrays` - compares two arrays and returns differences (added, removed, kept, moved items)
107
- - `applyArrayReconciliation` - applies reconciliation patches to transform one array into another
108
- - Supports both primitive arrays and object arrays with custom key functions
109
- - Useful for efficient list updates and state management
121
+ - `reconcileArrays` - compares two arrays and returns differences (added, removed, kept, moved items)
122
+ - `applyArrayReconciliation` - applies reconciliation patches to transform one array into another
123
+ - Supports both primitive arrays and object arrays with custom key functions
124
+ - Useful for efficient list updates and state management
110
125
 
111
126
  ## 4.6.6
112
127
 
@@ -141,20 +156,21 @@ Remove reconcileArrays functionality and associated tests
141
156
  - When the option is turned on `extraPlugins`. If the plugin module does not find the desired plugin, then it tries to load it from the same folder where the plugin itself.
142
157
  For example, if you connect the Jodit script from `./node_moudules/jodit/es2018/jodit.js` and you have a plugin `./node_moudules/jodit/es2018/plugins/my-plugin/`
143
158
 
144
- ```js
145
- Jodit.make ('#Editor', {
146
- extraPlugins: ['my-plugin'] // Will Be Loaded from ./node_modules/jodit/plugins/my-plugin/my-plugin.js
147
- });
148
- `` `
159
+ ````js
160
+ Jodit.make ('#Editor', {
161
+ extraPlugins: ['my-plugin'] // Will Be Loaded from ./node_modules/jodit/plugins/my-plugin/my-plugin.js
162
+ });
163
+ `` `
149
164
 
150
- But now if you connect Jodit from `./node_moudules/jodit/es2018/jodit.min.js`
151
- then the plugin will be loaded from `./node_modules/jodit/es2018/plugins/my-plugin/my-plugin.min.js`
165
+ But now if you connect Jodit from `./node_moudules/jodit/es2018/jodit.min.js`
166
+ then the plugin will be loaded from `./node_modules/jodit/es2018/plugins/my-plugin/my-plugin.min.js`
152
167
 
153
- ```js
154
- Jodit.make ('#Editor', {
155
- extraPlugins: ['my-plugin'] // Will Be Loaded from ./node_modules/jodit/plugins/my-plugin/my-plugin.min.js
156
- });
157
- `` `
168
+ ```js
169
+ Jodit.make ('#Editor', {
170
+ extraPlugins: ['my-plugin'] // Will Be Loaded from ./node_modules/jodit/plugins/my-plugin/my-plugin.min.js
171
+ });
172
+ `` `
173
+ ````
158
174
 
159
175
  ## 4.6.1
160
176
 
@@ -229,10 +245,10 @@ console.log(Jodit.fatMode); // true`
229
245
 
230
246
  ```js
231
247
  const editor = Jodit.make('#editor', {
232
- readonly: true,
233
- link: {
234
- preventReadOnlyNavigation: true
235
- }
248
+ readonly: true,
249
+ link: {
250
+ preventReadOnlyNavigation: true
251
+ }
236
252
  });
237
253
  ```
238
254
 
@@ -1268,7 +1284,6 @@ webpack 5.88.2 → 5.89.0
1268
1284
  }
1269
1285
  ```
1270
1286
  - Deprecated were removed
1271
-
1272
1287
  - `Dom.isTag` does not support array
1273
1288
  - `Select.applyStyle` method was removed
1274
1289
  - `history.observer` was removed
package/es2015/jodit.css CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.7.3
4
+ * Version: v4.7.5
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */