jodit 4.19.11 → 4.19.14

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 (84) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/es2015/jodit.css +33 -1
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +11 -11
  5. package/es2015/jodit.js +219 -117
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +9 -9
  8. package/es2015/plugins/debug/debug.css +1 -1
  9. package/es2015/plugins/debug/debug.js +1 -1
  10. package/es2015/plugins/debug/debug.min.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  12. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  13. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  14. package/es2018/jodit.fat.min.css +1 -1
  15. package/es2018/jodit.fat.min.js +9 -9
  16. package/es2018/jodit.min.css +1 -1
  17. package/es2018/jodit.min.js +9 -9
  18. package/es2018/plugins/debug/debug.min.js +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  20. package/es2021/jodit.css +33 -1
  21. package/es2021/jodit.fat.min.css +1 -1
  22. package/es2021/jodit.fat.min.js +10 -10
  23. package/es2021/jodit.js +218 -115
  24. package/es2021/jodit.min.css +1 -1
  25. package/es2021/jodit.min.js +10 -10
  26. package/es2021/plugins/debug/debug.css +1 -1
  27. package/es2021/plugins/debug/debug.js +1 -1
  28. package/es2021/plugins/debug/debug.min.js +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  31. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  32. package/es2021.en/jodit.css +33 -1
  33. package/es2021.en/jodit.fat.min.css +1 -1
  34. package/es2021.en/jodit.fat.min.js +10 -10
  35. package/es2021.en/jodit.js +194 -91
  36. package/es2021.en/jodit.min.css +1 -1
  37. package/es2021.en/jodit.min.js +11 -11
  38. package/es2021.en/plugins/debug/debug.css +1 -1
  39. package/es2021.en/plugins/debug/debug.js +1 -1
  40. package/es2021.en/plugins/debug/debug.min.js +1 -1
  41. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  42. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  43. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  44. package/es5/jodit.css +34 -2
  45. package/es5/jodit.fat.min.css +1 -1
  46. package/es5/jodit.fat.min.js +2 -2
  47. package/es5/jodit.js +261 -120
  48. package/es5/jodit.min.css +3 -3
  49. package/es5/jodit.min.js +2 -2
  50. package/es5/plugins/debug/debug.css +1 -1
  51. package/es5/plugins/debug/debug.js +1 -1
  52. package/es5/plugins/debug/debug.min.js +1 -1
  53. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  56. package/es5/polyfills.fat.min.js +1 -1
  57. package/es5/polyfills.js +1 -1
  58. package/es5/polyfills.min.js +1 -1
  59. package/esm/core/constants.js +1 -1
  60. package/esm/core/global.d.ts +6 -0
  61. package/esm/core/global.js +21 -4
  62. package/esm/core/helpers/html/safe-html.js +26 -0
  63. package/esm/core/ui/button/tooltip/tooltip.d.ts +6 -0
  64. package/esm/core/ui/button/tooltip/tooltip.js +14 -3
  65. package/esm/core/view/view-with-toolbar.js +6 -1
  66. package/esm/jodit.d.ts +4 -0
  67. package/esm/jodit.js +5 -1
  68. package/esm/languages.js +7 -1
  69. package/esm/plugins/add-new-line/add-new-line.d.ts +5 -0
  70. package/esm/plugins/add-new-line/add-new-line.js +20 -3
  71. package/esm/plugins/delete/delete.d.ts +7 -0
  72. package/esm/plugins/delete/delete.js +22 -0
  73. package/esm/plugins/hr/hr.js +5 -0
  74. package/esm/plugins/media/media.js +8 -5
  75. package/esm/plugins/resizer/resizer.js +4 -1
  76. package/esm/plugins/select-cells/select-cells.d.ts +1 -0
  77. package/esm/plugins/select-cells/select-cells.js +12 -18
  78. package/package.json +1 -1
  79. package/types/core/global.d.ts +6 -0
  80. package/types/core/ui/button/tooltip/tooltip.d.ts +6 -0
  81. package/types/jodit.d.ts +4 -0
  82. package/types/plugins/add-new-line/add-new-line.d.ts +5 -0
  83. package/types/plugins/delete/delete.d.ts +7 -0
  84. package/types/plugins/select-cells/select-cells.d.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -9,6 +9,25 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.19.14
13
+
14
+ #### :bug: Bug Fix
15
+
16
+ - Security: an SVG animation could write a `javascript:` URL into a link after the sanitizer had run. `<svg><a><animate attributeName="href" values="javascript:…">` passed `safeHTML`, which checked only the static URL attributes, and a click on the link ran the script in Chromium and Safari (CWE-79, stored XSS in the default configuration). The `values`, `from`, `to` and `by` of `<animate>`, `<set>`, `<animateMotion>` and `<animateTransform>` now go through the same scheme check and are dropped when one of them holds a dangerous URL. Reported by David Vieira Kurz (HiSolutions AG), GHSA-6wrw-v5gj-6xg7.
17
+ - Security: `extendLang()` merged a language pack with `Object.assign` and no key filter, so a pack parsed from untrusted JSON with a `__proto__` key wrote into `Object.prototype` (CWE-1321). The keys `__proto__`, `constructor` and `prototype` are skipped on both levels, as `set()` and `Jodit.configure()` already did; the helper is also reachable as `Jodit.extendLang`. Reported by zx, GHSA-6gxg-6pj3-m22j.
18
+ - ESM build: a language file whose dictionary holds a `default` entry (`no.js`, "Standard") was taken for a module, so the Norwegian pack was replaced by that string, and the `default` of a CommonJS pack a plugin imports overwrote the translation. Both now unwrap a module only when `default` is a dictionary.
19
+
20
+ ## 4.19.12
21
+
22
+ #### :bug: Bug Fix
23
+
24
+ - [#1804](https://github.com/xdan/jodit/issues/1804) A drag over a table nested in a cell keeps the browser's own selection and marks the cell that holds the nested table, and releasing the mouse over the nested table still opens the cells popup; a cell Firefox selects whole is cleared instead of removed. Thanks @brendon.
25
+ - [#1803](https://github.com/xdan/jodit/issues/1803) An arrow key with the caret directly in the editor, beside a horizontal line, no longer adds a paragraph at the top.
26
+ - [#1807](https://github.com/xdan/jodit/issues/1807) The empty line the HR command and the add-new-line bar add gets a `<br>`, as Enter's does, so it keeps its height once the caret leaves it.
27
+ - [#1809](https://github.com/xdan/jodit/issues/1809) A wrapped iframe, video or audio shows in the editor where its line aligns it (`text-align: center/right`), as in the saved HTML.
28
+ - [#1811](https://github.com/xdan/jodit/issues/1811) Tooltips show for a toolbar placed outside the editor with the `toolbar` option.
29
+ - [#1812](https://github.com/xdan/jodit/issues/1812) Popups, dialogs and messages keep the page's text colour, weight, line height and alignment out; content with no style of its own now gets a normal line height and `text-align: start`.
30
+
12
31
  ## 4.19.11
13
32
 
14
33
  #### :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.19.11
4
+ * Version: v4.19.14
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -1369,6 +1369,15 @@
1369
1369
  --jd-em-font-size: 1rem;
1370
1370
  }
1371
1371
  .jodit-ui-messages {
1372
+ font-family: var(--jd-font-default);
1373
+ font-size: var(--jd-font-size-default);
1374
+ color: var(--jd-color-text);
1375
+ font-style: normal;
1376
+ font-weight: normal;
1377
+ letter-spacing: normal;
1378
+ line-height: normal;
1379
+ text-align: start;
1380
+ text-transform: none;
1372
1381
  position: absolute;
1373
1382
  z-index: 3;
1374
1383
  right: 0;
@@ -1449,6 +1458,13 @@
1449
1458
  .jodit-dialog {
1450
1459
  font-family: var(--jd-font-default);
1451
1460
  font-size: var(--jd-font-size-default);
1461
+ color: var(--jd-color-text);
1462
+ font-style: normal;
1463
+ font-weight: normal;
1464
+ letter-spacing: normal;
1465
+ line-height: normal;
1466
+ text-align: start;
1467
+ text-transform: none;
1452
1468
  position: absolute;
1453
1469
  display: none;
1454
1470
  width: 0;
@@ -4151,6 +4167,12 @@ html.jodit_fullsize-box_true {
4151
4167
  * Released under MIT see LICENSE.txt in the project root for license information.
4152
4168
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
4153
4169
  */
4170
+ .jodit-ui-image-position-tab__lockMargin,
4171
+ .jodit-ui-image-properties-form__lockMargin,
4172
+ .jodit-ui-image-position-tab__lockSize,
4173
+ .jodit-ui-image-properties-form__lockSize {
4174
+ color: inherit;
4175
+ }
4154
4176
  .jodit-ui-image-position-tab__lockMargin > svg,
4155
4177
  .jodit-ui-image-properties-form__lockMargin > svg,
4156
4178
  .jodit-ui-image-position-tab__lockSize > svg,
@@ -4761,6 +4783,7 @@ html.jodit_fullsize-box_true {
4761
4783
  color: var(--jd-color-text);
4762
4784
  cursor: pointer;
4763
4785
  font-size: 16px;
4786
+ font-weight: normal;
4764
4787
  line-height: calc(var(--jd-height-element-default) * 1.2);
4765
4788
  text-align: center;
4766
4789
  text-decoration: none;
@@ -4974,6 +4997,7 @@ html.jodit_fullsize-box_true {
4974
4997
  }
4975
4998
  .jodit-ui-video-properties-form__lockSize {
4976
4999
  display: inline-block;
5000
+ color: inherit;
4977
5001
  cursor: pointer;
4978
5002
  }
4979
5003
  .jodit-ui-video-properties-form__lockSize > svg {
@@ -5290,6 +5314,7 @@ html.jodit_fullsize-box_true {
5290
5314
  background-color: var(--jd-color-background-gray);
5291
5315
  color: var(--jd-color-default);
5292
5316
  cursor: pointer;
5317
+ font-weight: normal;
5293
5318
  line-height: 1;
5294
5319
  text-decoration: none;
5295
5320
  user-select: none;
@@ -5691,6 +5716,13 @@ svg.jodit-icon {
5691
5716
  background: 0 0;
5692
5717
  float: none;
5693
5718
  outline: 0;
5719
+ color: var(--jd-color-text);
5720
+ font-style: normal;
5721
+ font-weight: normal;
5722
+ letter-spacing: normal;
5723
+ line-height: normal;
5724
+ text-align: start;
5725
+ text-transform: none;
5694
5726
  }
5695
5727
  .jodit {
5696
5728
  --jd-slot-top-height: auto;