jodit 4.7.4 → 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.
- package/CHANGELOG.md +46 -31
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +3 -3
- package/es2015/jodit.js +20 -13
- package/es2015/jodit.min.js +3 -3
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.fat.min.js +3 -3
- package/es2018/jodit.min.js +3 -3
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +4 -4
- package/es2021/jodit.js +20 -13
- package/es2021/jodit.min.js +4 -4
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +4 -4
- package/es2021.en/jodit.js +20 -13
- package/es2021.en/jodit.min.js +4 -4
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +22 -13
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/modules/uploader/helpers/send.js +17 -11
- package/esm/modules/widget/file-selector/file-selector.js +5 -3
- package/esm/types/uploader.d.ts +14 -0
- package/package.json +1 -1
- 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
|
-
|
|
74
|
-
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
|
|
151
|
-
|
|
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
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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
|
-
|
|
233
|
-
|
|
234
|
-
|
|
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