jodit 4.18.2 → 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.
Files changed (95) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/es2015/jodit.css +7 -6
  3. package/es2015/jodit.fat.min.js +10 -10
  4. package/es2015/jodit.js +475 -183
  5. package/es2015/jodit.min.js +10 -10
  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 +9 -9
  13. package/es2018/jodit.min.js +9 -9
  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 +7 -6
  17. package/es2021/jodit.fat.min.js +16 -16
  18. package/es2021/jodit.js +415 -129
  19. package/es2021/jodit.min.js +16 -16
  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 +7 -6
  27. package/es2021.en/jodit.fat.min.js +25 -25
  28. package/es2021.en/jodit.js +415 -129
  29. package/es2021.en/jodit.min.js +16 -16
  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 +8 -7
  37. package/es5/jodit.fat.min.js +2 -2
  38. package/es5/jodit.js +536 -209
  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/config.d.ts +4 -2
  51. package/esm/core/constants.js +1 -1
  52. package/esm/core/helpers/utils/index.d.ts +1 -0
  53. package/esm/core/helpers/utils/index.js +1 -0
  54. package/esm/core/helpers/utils/prepare-media.d.ts +19 -0
  55. package/esm/core/helpers/utils/prepare-media.js +31 -0
  56. package/esm/core/selection/style/api/wrap-unwrapped-text.js +3 -2
  57. package/esm/modules/history/history.d.ts +17 -2
  58. package/esm/modules/history/history.js +41 -19
  59. package/esm/modules/table/table.js +7 -2
  60. package/esm/modules/widget/file-selector/file-selector.js +2 -2
  61. package/esm/plugins/backspace/backspace.js +4 -0
  62. package/esm/plugins/clean-html/clean-html.d.ts +7 -0
  63. package/esm/plugins/clean-html/clean-html.js +17 -0
  64. package/esm/plugins/clean-html/helpers/visitor/filters/replace-old-tags.js +26 -1
  65. package/esm/plugins/dtd/before-insert/check-block-nesting.d.ts +2 -1
  66. package/esm/plugins/dtd/before-insert/check-block-nesting.js +26 -5
  67. package/esm/plugins/enter/helpers/move-cursor-out-from-specal-tags.js +8 -0
  68. package/esm/plugins/focus/focus.js +3 -0
  69. package/esm/plugins/hr/hr.js +21 -5
  70. package/esm/plugins/iframe/config.js +8 -3
  71. package/esm/plugins/inline-popup/inline-popup.d.ts +5 -0
  72. package/esm/plugins/inline-popup/inline-popup.js +26 -2
  73. package/esm/plugins/link/link.js +5 -2
  74. package/esm/plugins/media/config.d.ts +2 -1
  75. package/esm/plugins/media/media.js +21 -2
  76. package/esm/plugins/paste/helpers.d.ts +8 -0
  77. package/esm/plugins/paste/helpers.js +18 -1
  78. package/esm/plugins/paste/paste.js +2 -2
  79. package/esm/plugins/resizer/resizer.js +8 -3
  80. package/esm/plugins/select-cells/select-cells.d.ts +10 -0
  81. package/esm/plugins/select-cells/select-cells.js +54 -6
  82. package/esm/plugins/table/config.js +51 -1
  83. package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js +1 -1
  84. package/esm/plugins/video/config.js +6 -22
  85. package/package.json +1 -1
  86. package/types/config.d.ts +4 -2
  87. package/types/core/helpers/utils/index.d.ts +1 -0
  88. package/types/core/helpers/utils/prepare-media.d.ts +19 -0
  89. package/types/modules/history/history.d.ts +17 -2
  90. package/types/plugins/clean-html/clean-html.d.ts +7 -0
  91. package/types/plugins/dtd/before-insert/check-block-nesting.d.ts +2 -1
  92. package/types/plugins/inline-popup/inline-popup.d.ts +5 -0
  93. package/types/plugins/media/config.d.ts +2 -1
  94. package/types/plugins/paste/helpers.d.ts +8 -0
  95. package/types/plugins/select-cells/select-cells.d.ts +10 -0
package/CHANGELOG.md CHANGED
@@ -9,6 +9,30 @@
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
+
12
36
  ## 4.18.2
13
37
 
14
38
  #### :lock: Security
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.2
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): size the tab
4015
- * buttons to their labels so long localized captions — e.g. the German
4016
- * "Datei hochladen" / "Durchsuchen" — are not clipped and the popup widens to
4017
- * fit. Scoped to `.jodit-file-selector`, so other tab popups (link, video …)
4018
- * keep their fixed equal-column layout.
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;