jodit 4.20.5 → 4.21.1

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 (90) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +0 -1
  3. package/es2015/jodit.css +2 -2
  4. package/es2015/jodit.fat.min.css +1 -1
  5. package/es2015/jodit.fat.min.js +12 -12
  6. package/es2015/jodit.js +558 -210
  7. package/es2015/jodit.min.css +1 -1
  8. package/es2015/jodit.min.js +12 -12
  9. package/es2015/plugins/debug/debug.css +1 -1
  10. package/es2015/plugins/debug/debug.js +2 -2
  11. package/es2015/plugins/debug/debug.min.js +2 -2
  12. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  13. package/es2015/plugins/speech-recognize/speech-recognize.js +2 -2
  14. package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
  15. package/es2018/jodit.fat.min.css +1 -1
  16. package/es2018/jodit.fat.min.js +12 -12
  17. package/es2018/jodit.min.css +1 -1
  18. package/es2018/jodit.min.js +12 -12
  19. package/es2018/plugins/debug/debug.min.js +2 -2
  20. package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
  21. package/es2021/jodit.css +2 -2
  22. package/es2021/jodit.fat.min.css +1 -1
  23. package/es2021/jodit.fat.min.js +17 -17
  24. package/es2021/jodit.js +550 -203
  25. package/es2021/jodit.min.css +1 -1
  26. package/es2021/jodit.min.js +17 -17
  27. package/es2021/plugins/debug/debug.css +1 -1
  28. package/es2021/plugins/debug/debug.js +2 -2
  29. package/es2021/plugins/debug/debug.min.js +2 -2
  30. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  31. package/es2021/plugins/speech-recognize/speech-recognize.js +2 -2
  32. package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
  33. package/es2021.en/jodit.css +2 -2
  34. package/es2021.en/jodit.fat.min.css +1 -1
  35. package/es2021.en/jodit.fat.min.js +17 -17
  36. package/es2021.en/jodit.js +550 -203
  37. package/es2021.en/jodit.min.css +1 -1
  38. package/es2021.en/jodit.min.js +32 -32
  39. package/es2021.en/plugins/debug/debug.css +1 -1
  40. package/es2021.en/plugins/debug/debug.js +2 -2
  41. package/es2021.en/plugins/debug/debug.min.js +2 -2
  42. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  43. package/es2021.en/plugins/speech-recognize/speech-recognize.js +2 -2
  44. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
  45. package/es5/jodit.css +3 -3
  46. package/es5/jodit.fat.min.css +1 -1
  47. package/es5/jodit.fat.min.js +2 -2
  48. package/es5/jodit.js +595 -177
  49. package/es5/jodit.min.css +3 -3
  50. package/es5/jodit.min.js +2 -2
  51. package/es5/plugins/debug/debug.css +1 -1
  52. package/es5/plugins/debug/debug.js +2 -2
  53. package/es5/plugins/debug/debug.min.js +2 -2
  54. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.js +2 -2
  56. package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
  57. package/es5/polyfills.fat.min.js +2 -2
  58. package/es5/polyfills.js +1 -29
  59. package/es5/polyfills.min.js +2 -2
  60. package/esm/config.d.ts +18 -0
  61. package/esm/core/constants.d.ts +6 -0
  62. package/esm/core/constants.js +18 -1
  63. package/esm/core/helpers/html/clean-from-word.d.ts +3 -1
  64. package/esm/core/helpers/html/clean-from-word.js +87 -11
  65. package/esm/core/helpers/utils/selector.js +4 -3
  66. package/esm/plugins/hr/hr.js +290 -1
  67. package/esm/plugins/inline-popup/config/config.js +2 -0
  68. package/esm/plugins/inline-popup/config/items/hr.d.ts +11 -0
  69. package/esm/plugins/inline-popup/config/items/hr.js +15 -0
  70. package/esm/plugins/key-arrow-outside/key-arrow-outside.js +2 -2
  71. package/esm/plugins/link/config.d.ts +7 -0
  72. package/esm/plugins/link/config.js +1 -0
  73. package/esm/plugins/link/link.js +20 -16
  74. package/esm/plugins/paste/config.d.ts +5 -0
  75. package/esm/plugins/paste/config.js +2 -1
  76. package/esm/plugins/paste/paste.js +1 -1
  77. package/esm/plugins/paste-from-word/paste-from-word.js +2 -2
  78. package/esm/plugins/symbols/config.d.ts +6 -0
  79. package/esm/plugins/symbols/config.js +1 -0
  80. package/esm/plugins/symbols/symbols.d.ts +0 -1
  81. package/esm/plugins/symbols/symbols.js +12 -10
  82. package/package.json +1 -1
  83. package/types/config.d.ts +18 -0
  84. package/types/core/constants.d.ts +6 -0
  85. package/types/core/helpers/html/clean-from-word.d.ts +3 -1
  86. package/types/plugins/inline-popup/config/items/hr.d.ts +11 -0
  87. package/types/plugins/link/config.d.ts +7 -0
  88. package/types/plugins/paste/config.d.ts +5 -0
  89. package/types/plugins/symbols/config.d.ts +6 -0
  90. package/types/plugins/symbols/symbols.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -9,6 +9,34 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.21.1
13
+
14
+ #### :bug: Bug Fix
15
+
16
+ - Keep the Update button's text styling when editing a link ([#1851](https://github.com/xdan/jodit/pull/1851)).
17
+ - Avoid inserting a visible space when moving the caret out of inline formatting with the right arrow key ([#1857](https://github.com/xdan/jodit/pull/1857)).
18
+
19
+ Thanks [@brendon](https://github.com/brendon).
20
+
21
+ ## 4.21.0
22
+
23
+ #### :rocket: New Feature
24
+
25
+ - [#1802](https://github.com/xdan/jodit/issues/1802) A horizontal line is selected whole, as an image is. A click on a line, or an arrow key that comes to one, selects it with a frame, and the click opens the new `hr` popup with Delete. With a line selected, Delete and Backspace remove only the line, Enter adds an empty paragraph after it and Shift+Enter one before it, and typing starts a new paragraph after it. The arrow keys no longer stop beside a line, where typing started a stray paragraph. A line in a list item or a table cell, and an editor with `enter: 'br'`, keep the old arrow keys. A selection of a single line no longer opens the selection toolbar.
26
+ - [#1830](https://github.com/xdan/jodit/pull/1830), [#1780](https://github.com/xdan/jodit/issues/1780) Clean paste preserves merged table cells, image descriptions, link targets and styled bold/italic text, including nested resets; configure retained attributes with `pasteKeepAttributes`.
27
+ - [#1832](https://github.com/xdan/jodit/pull/1832), [#1785](https://github.com/xdan/jodit/issues/1785) Set `link.selectKeepOtherClassNames: true` to preserve classes not offered by a select-mode link form; the default remains unchanged.
28
+ - [#1844](https://github.com/xdan/jodit/pull/1844), [#1843](https://github.com/xdan/jodit/issues/1843) Configure special-character picker columns with `specialCharactersColumns`; invalid values fall back to 17 for layout and navigation.
29
+
30
+ Thanks [@brendon](https://github.com/brendon).
31
+
32
+ #### :boom: Breaking Change
33
+
34
+ - Horizontal-rule selection now has its own popup and keyboard handling; integrations that customized selection toolbars for a single horizontal rule should configure `popup.hr` instead. Clean paste now retains the documented formatting and attributes; set `pasteKeepAttributes: ['src', 'href', 'rel', 'content']` to retain the earlier attribute list.
35
+
36
+ #### :memo: Documentation
37
+
38
+ - Remove the unsupported Internet Explorer 11 compatibility claim; use a supported modern browser with Jodit 4.
39
+
12
40
  ## 4.20.5
13
41
 
14
42
  #### :bug: Bug Fix
package/README.md CHANGED
@@ -269,7 +269,6 @@ const editor = Jodit.make('#editor', {
269
269
 
270
270
  ## Browser Support
271
271
 
272
- - Internet Explorer 11
273
272
  - Latest Chrome
274
273
  - Latest Firefox
275
274
  - Latest Safari
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.20.5
4
+ * Version: v4.21.1
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -4881,11 +4881,11 @@ html.jodit_fullsize-box_true {
4881
4881
  * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
4882
4882
  */
4883
4883
  .jodit-symbols {
4884
- width: 460px;
4885
4884
  padding: var(--jd-padding-default);
4886
4885
  }
4887
4886
  .jodit-symbols__container {
4888
4887
  display: flex;
4888
+ width: calc((460px - 2 * var(--jd-padding-default)) * var(--jd-symbols-columns, 17) / 17);
4889
4889
  }
4890
4890
  .jodit-symbols__container_table {
4891
4891
  width: 88%;