jodit 4.18.1 → 4.18.3
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 +30 -0
- package/es2015/jodit.css +7 -6
- package/es2015/jodit.fat.min.js +10 -10
- package/es2015/jodit.js +492 -189
- package/es2015/jodit.min.js +10 -10
- 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 +9 -9
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +7 -6
- package/es2021/jodit.fat.min.js +16 -16
- package/es2021/jodit.js +432 -135
- package/es2021/jodit.min.js +16 -16
- 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 +7 -6
- package/es2021.en/jodit.fat.min.js +16 -16
- package/es2021.en/jodit.js +432 -135
- package/es2021.en/jodit.min.js +16 -16
- 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 +8 -7
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +555 -215
- 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/config.d.ts +4 -2
- package/esm/core/constants.js +1 -1
- package/esm/core/helpers/utils/index.d.ts +1 -0
- package/esm/core/helpers/utils/index.js +1 -0
- package/esm/core/helpers/utils/prepare-media.d.ts +19 -0
- package/esm/core/helpers/utils/prepare-media.js +31 -0
- package/esm/core/selection/style/api/wrap-unwrapped-text.js +3 -2
- package/esm/modules/history/history.d.ts +17 -2
- package/esm/modules/history/history.js +41 -19
- package/esm/modules/table/table.js +7 -2
- package/esm/modules/widget/file-selector/file-selector.js +2 -2
- package/esm/plugins/backspace/backspace.js +4 -0
- package/esm/plugins/clean-html/clean-html.d.ts +9 -1
- package/esm/plugins/clean-html/clean-html.js +41 -7
- package/esm/plugins/clean-html/helpers/visitor/filters/replace-old-tags.js +26 -1
- package/esm/plugins/dtd/before-insert/check-block-nesting.d.ts +2 -1
- package/esm/plugins/dtd/before-insert/check-block-nesting.js +26 -5
- package/esm/plugins/enter/helpers/move-cursor-out-from-specal-tags.js +8 -0
- package/esm/plugins/focus/focus.js +3 -0
- package/esm/plugins/hr/hr.js +21 -5
- package/esm/plugins/iframe/config.js +8 -3
- package/esm/plugins/inline-popup/inline-popup.d.ts +5 -0
- package/esm/plugins/inline-popup/inline-popup.js +26 -2
- package/esm/plugins/link/link.js +5 -2
- package/esm/plugins/media/config.d.ts +2 -1
- package/esm/plugins/media/media.js +21 -2
- package/esm/plugins/paste/helpers.d.ts +8 -0
- package/esm/plugins/paste/helpers.js +18 -1
- package/esm/plugins/paste/paste.js +2 -2
- package/esm/plugins/resizer/resizer.js +8 -3
- package/esm/plugins/select-cells/select-cells.d.ts +10 -0
- package/esm/plugins/select-cells/select-cells.js +54 -6
- package/esm/plugins/table/config.js +51 -1
- package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js +1 -1
- package/esm/plugins/video/config.js +6 -22
- package/package.json +1 -1
- package/types/config.d.ts +4 -2
- package/types/core/helpers/utils/index.d.ts +1 -0
- package/types/core/helpers/utils/prepare-media.d.ts +19 -0
- package/types/modules/history/history.d.ts +17 -2
- package/types/plugins/clean-html/clean-html.d.ts +9 -1
- package/types/plugins/dtd/before-insert/check-block-nesting.d.ts +2 -1
- package/types/plugins/inline-popup/inline-popup.d.ts +5 -0
- package/types/plugins/media/config.d.ts +2 -1
- package/types/plugins/paste/helpers.d.ts +8 -0
- package/types/plugins/select-cells/select-cells.d.ts +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,36 @@
|
|
|
9
9
|
> - :house: [Internal]
|
|
10
10
|
> - :nail_care: [Polish]
|
|
11
11
|
|
|
12
|
+
## 4.18.3
|
|
13
|
+
|
|
14
|
+
#### :bug: Bug Fix
|
|
15
|
+
|
|
16
|
+
- [#1601](https://github.com/xdan/jodit/issues/1601) `history.timeout` now groups changes into undo steps. A step holds the changes made within `history.timeout` (1000ms by default) of its first change, so typing is undone about a second at a time instead of a letter or two. The option had had no effect since 3.4.1. Thanks [@brendon](https://github.com/brendon).
|
|
17
|
+
- [#1605](https://github.com/xdan/jodit/issues/1605) Blocks pasted or inserted in the middle of a paragraph or heading now split it at the caret instead of going after it, and ([#1606](https://github.com/xdan/jodit/issues/1606)) a horizontal line inserted in a list item or table cell stays in it, with the caret right after it. Thanks [@brendon](https://github.com/brendon).
|
|
18
|
+
- [#1603](https://github.com/xdan/jodit/issues/1603) Inserting a table from the toolbar in a table cell, a list item or a `<div>` now puts the new table inside it, instead of splitting the table, list or `<div>` in two. Thanks [@brendon](https://github.com/brendon).
|
|
19
|
+
- [#1608](https://github.com/xdan/jodit/issues/1608) A heading, quote or list made in an empty table cell no longer gets an empty second line. Thanks [@brendon](https://github.com/brendon).
|
|
20
|
+
- [#1593](https://github.com/xdan/jodit/issues/1593) Cells added by Insert row, Insert column and Tab, a cell merged from empty cells and an emptied cell now hold a `<br>`, so they keep their height when `cleanHTML.fillEmptyParagraph` is off. Tab into an empty cell puts the caret in it. Thanks [@brendon](https://github.com/brendon).
|
|
21
|
+
- [#1595](https://github.com/xdan/jodit/issues/1595) After Delete row or Delete column, the caret moves to the nearest remaining cell. It was left between rows, where Safari typed into the table's markup. Thanks [@brendon](https://github.com/brendon).
|
|
22
|
+
- [#1597](https://github.com/xdan/jodit/issues/1597) Deleting a table's last row or column deletes the table instead of leaving an empty one, and deleting a table puts the caret where it was. Thanks [@brendon](https://github.com/brendon).
|
|
23
|
+
- [#1591](https://github.com/xdan/jodit/issues/1591) Enter at the start or end of a link no longer leaves an empty link on one of the lines, and in Safari the text typed next goes on the new line. Thanks [@brendon](https://github.com/brendon).
|
|
24
|
+
- [#1589](https://github.com/xdan/jodit/issues/1589) Pasting from Google Docs no longer puts the pasted blocks inside a `<strong>`, and a cleaned paste (`INSERT_CLEAR_HTML`) of Docs content is no longer all bold. Thanks [@brendon](https://github.com/brendon).
|
|
25
|
+
- [#1587](https://github.com/xdan/jodit/issues/1587) `<b>` and `<i>` in a value set with `editor.value` are now replaced with `<strong>` and `<em>` straight away, so Bold and Italic recognise them. When the background cleaner replaces old tags that arrive later, as in pasted content, the caret stays where it was. Thanks [@brendon](https://github.com/brendon).
|
|
26
|
+
- [#1583](https://github.com/xdan/jodit/issues/1583) In Safari, Backspace removes a clicked embed, and Delete and Backspace no longer throw when the editor has focus but no selection. Thanks [@brendon](https://github.com/brendon).
|
|
27
|
+
- [#1584](https://github.com/xdan/jodit/issues/1584) Clicking an embed no longer rewrites its `width` and `height` attributes, which became pixel values with `px`; resizing it writes plain numbers. Thanks [@brendon](https://github.com/brendon).
|
|
28
|
+
- [#1576](https://github.com/xdan/jodit/issues/1576) Delete and Backspace remove a clicked video with its wrapper, instead of joining the next line to it. A clicked media wrapper is now selected, as a clicked image is. Thanks [@brendon](https://github.com/brendon).
|
|
29
|
+
- [#1575](https://github.com/xdan/jodit/issues/1575) The inline popup for an image, embed or video opens clear of the resize frame's handles, which it used to cover. Thanks [@brendon](https://github.com/brendon).
|
|
30
|
+
- [#1610](https://github.com/xdan/jodit/issues/1610) In iframe mode a click on an embedded video selects it, as it does without `iframe: true`, instead of going to the player. Thanks [@brendon](https://github.com/brendon).
|
|
31
|
+
- [#1599](https://github.com/xdan/jodit/issues/1599) A YouTube or Vimeo link pasted as an embed now goes in its `mediaWrappers` wrapper and is aligned with `mediaDefaultAlign`, as the video popup's embed is. Thanks [@brendon](https://github.com/brendon).
|
|
32
|
+
- [#1612](https://github.com/xdan/jodit/issues/1612) A click on a video or audio in a `mediaWrappers` wrapper selects it and opens the media popup, as one in `jodit-media` does, rather than playing it. Thanks [@brendon](https://github.com/brendon).
|
|
33
|
+
- [#1613](https://github.com/xdan/jodit/issues/1613) The media popup opens beside the media in a `mediaWrappers` wrapper, not at the edge of a wrapper that fills the line. Thanks [@brendon](https://github.com/brendon).
|
|
34
|
+
- [#1614](https://github.com/xdan/jodit/issues/1614) The video popup's Upload tab label is no longer cut off. Thanks [@brendon](https://github.com/brendon).
|
|
35
|
+
|
|
36
|
+
## 4.18.2
|
|
37
|
+
|
|
38
|
+
#### :lock: Security
|
|
39
|
+
|
|
40
|
+
- Stored XSS through the initial value of a `<textarea>`: the content the editor is created on went into the live editing area before the clean-html plugin had attached its handlers (they were bound with `@watch`, which attaches once the plugin is ready, after `afterInit`), so an event handler such as `<img onerror>` in stored HTML ran in the editing user's browser, in iframe mode as well, and stayed in the value until the background pass removed it. Values set later through `editor.value` were not affected. The plugin now binds its `safeHTML`, `beforeSetNativeEditorValue` and `afterSetNativeEditorValue` handlers in its constructor, before the editor reads the element, and the background pass starts at `afterInit` instead of waiting for the first key or click. Reported by Brendon Muir ([@brendon](https://github.com/brendon)).
|
|
41
|
+
|
|
12
42
|
## 4.18.1
|
|
13
43
|
|
|
14
44
|
#### :bug: Bug Fix
|
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.18.
|
|
4
|
+
* Version: v4.18.3
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -4011,11 +4011,12 @@ a + .jodit-file-browser-tree__source-title {
|
|
|
4011
4011
|
min-height: 100px;
|
|
4012
4012
|
}
|
|
4013
4013
|
/*
|
|
4014
|
-
* Insert-image / insert-file popup (see FileSelectorWidget)
|
|
4015
|
-
*
|
|
4016
|
-
* "Datei hochladen" / "Durchsuchen"
|
|
4017
|
-
*
|
|
4018
|
-
* keep their fixed
|
|
4014
|
+
* Insert-image / insert-file popup (see FileSelectorWidget), and the video
|
|
4015
|
+
* popup, which has an Upload tab too: size the tab buttons to their labels so
|
|
4016
|
+
* long localized captions — e.g. the German "Datei hochladen" / "Durchsuchen"
|
|
4017
|
+
* — are not clipped and the popup widens to fit. Scoped to
|
|
4018
|
+
* `.jodit-file-selector`, so other tab popups (link …) keep their fixed
|
|
4019
|
+
* equal-column layout.
|
|
4019
4020
|
*/
|
|
4020
4021
|
.jodit-file-selector .jodit-tabs__button {
|
|
4021
4022
|
flex: none;
|