jodit 4.19.7 → 4.19.9
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 +22 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +9 -9
- package/es2015/jodit.js +336 -117
- package/es2015/jodit.min.js +5 -5
- 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 +9 -9
- package/es2018/jodit.min.js +5 -5
- 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 +11 -11
- package/es2021/jodit.js +267 -59
- package/es2021/jodit.min.js +57 -57
- 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 +7 -7
- package/es2021.en/jodit.js +267 -59
- package/es2021.en/jodit.min.js +7 -7
- 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 +416 -119
- 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.d.ts +1 -0
- package/esm/core/constants.js +3 -1
- package/esm/core/helpers/utils/error/error.d.ts +1 -0
- package/esm/core/helpers/utils/error/error.js +4 -1
- package/esm/core/helpers/utils/error/errors/answer-error.d.ts +13 -0
- package/esm/core/helpers/utils/error/errors/answer-error.js +17 -0
- package/esm/core/helpers/utils/error/errors/index.d.ts +1 -0
- package/esm/core/helpers/utils/error/errors/index.js +1 -0
- package/esm/core/helpers/utils/scroll-into-view.js +9 -2
- package/esm/core/request/ajax.d.ts +1 -0
- package/esm/core/request/ajax.js +20 -1
- package/esm/core/selection/selection.js +7 -4
- package/esm/modules/file-browser/data-provider.js +5 -3
- package/esm/modules/uploader/config.js +4 -0
- package/esm/modules/uploader/helpers/send-files.d.ts +2 -2
- package/esm/modules/uploader/helpers/send-files.js +76 -9
- package/esm/modules/uploader/helpers/upload-error.d.ts +15 -0
- package/esm/modules/uploader/helpers/upload-error.js +16 -0
- package/esm/modules/uploader/uploader.js +15 -3
- package/esm/plugins/enter/helpers/check-br.js +7 -1
- package/esm/plugins/font/config.js +8 -8
- package/esm/plugins/hotkeys/hotkeys.js +11 -0
- package/esm/types/uploader.d.ts +117 -11
- package/package.json +2 -2
- package/types/core/constants.d.ts +1 -0
- package/types/core/helpers/utils/error/error.d.ts +1 -0
- package/types/core/helpers/utils/error/errors/answer-error.d.ts +13 -0
- package/types/core/helpers/utils/error/errors/index.d.ts +1 -0
- package/types/core/request/ajax.d.ts +1 -0
- package/types/modules/uploader/helpers/send-files.d.ts +2 -2
- package/types/modules/uploader/helpers/upload-error.d.ts +15 -0
- package/types/types/uploader.d.ts +117 -11
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,28 @@
|
|
|
9
9
|
> - :house: [Internal]
|
|
10
10
|
> - :nail_care: [Polish]
|
|
11
11
|
|
|
12
|
+
## 4.19.9
|
|
13
|
+
|
|
14
|
+
#### :bug: Bug Fix
|
|
15
|
+
|
|
16
|
+
- [#1792](https://github.com/xdan/jodit/issues/1792) `inView` goes by the document's `scroll-padding-top` and `scroll-padding-bottom` (in pixels or percent), as `scrollIntoView` already does, so a caret under a fixed bar on such a page is scrolled into view. Thanks @brendon.
|
|
17
|
+
- [#1790](https://github.com/xdan/jodit/issues/1790) A digit key held with Shift is matched by its key code, so the list shortcuts (Ctrl+Shift+7, Ctrl+Shift+8) work on Windows, where Shift sends the symbol as the key. A hotkey registered on the shifted symbol itself (`ctrl+shift+&`) now has to be written with the digit. Thanks @brendon.
|
|
18
|
+
- [#1796](https://github.com/xdan/jodit/issues/1796) `insertNode` removes the invisible character left beside an inserted block (hr, table, list), which showed as an empty line until the next clean-up. Thanks @brendon.
|
|
19
|
+
- [#1788](https://github.com/xdan/jodit/issues/1788) The font size select shows the editor's own size until there is a selection, and keeps the size of the last selection after it is gone, as the font select does. The icon button stays unpressed without a selection. Thanks @brendon.
|
|
20
|
+
- [#1794](https://github.com/xdan/jodit/issues/1794) Shift+Enter brings the caret's own line into view, not the line above it. Thanks @brendon.
|
|
21
|
+
|
|
22
|
+
## 4.19.8
|
|
23
|
+
|
|
24
|
+
#### :rocket: New Feature
|
|
25
|
+
|
|
26
|
+
- `uploader.promptOnExists` (on by default): when the connector answers `409`, an uploaded name is already taken (the `error` value of `saveSameFileNameStrategy`; jodit-nodejs 2.1.1, PHP 3.0.61, jodit-python), the uploader asks for another name in a prompt and sends the file again under it, before the error handler gets a say. `uploader.promptOnExistsSuggestName(name)` fills the prompt in (default: the same name), Cancel drops the file, a batch is sent again one file at a time so only the taken names ask. Requested by Kevin Sormann (li-life web+it).
|
|
27
|
+
- A refused upload reaches the error handler as an `UploadError`: `message` is the connector's text as before, plus `answer`, `code` (`data.code`), the sent `files` and `retry(plan)` to send them again with other files or extra request fields such as `onExists: 'replace'`, without running `beforeUpload` twice. The file browser's data provider throws an `AnswerError` with `answer` and `code` for its requests.
|
|
28
|
+
- `uploader.beforeUpload` may return a promise, and may hand back the files to send instead of the dropped ones (renamed, or some left out) or `{ files, data }` that also adds fields to the request. Returning `false` still cancels.
|
|
29
|
+
|
|
30
|
+
#### :bug: Bug Fix
|
|
31
|
+
|
|
32
|
+
- `Ajax` dropped the body of a connector answer sent with a status outside `successStatuses` (403, 409) and rejected with the reason phrase, so the file browser and uploader showed "Forbidden" or "Conflict" instead of the connector's own message. An answer whose body is the JSON envelope (`{"success": false, "data": {"code", "messages"}}`) is now resolved whatever the status and judged by `success` and `data.code`; only a body that is not such an envelope (an HTML error page) still rejects with the status text. Groundwork for the Finder dialog on an uploaded name that is already taken (connectors answer 409 since jodit-nodejs 2.1.1 and PHP 3.0.61).
|
|
33
|
+
|
|
12
34
|
## 4.19.7
|
|
13
35
|
|
|
14
36
|
#### :bug: Bug Fix
|
package/es2015/jodit.css
CHANGED