jodit 4.2.15 → 4.2.18

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 (107) hide show
  1. package/CHANGELOG.md +81 -5
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +2 -2
  4. package/es2015/jodit.js +408 -395
  5. package/es2015/jodit.min.js +2 -2
  6. package/es2015/plugins/debug/debug.js +1 -1
  7. package/es2015/plugins/debug/debug.min.js +1 -1
  8. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.js +11 -11
  10. package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
  11. package/es2018/jodit.css +1 -1
  12. package/es2018/jodit.fat.min.js +2 -2
  13. package/es2018/jodit.js +408 -397
  14. package/es2018/jodit.min.js +2 -2
  15. package/es2018/plugins/debug/debug.js +1 -1
  16. package/es2018/plugins/debug/debug.min.js +1 -1
  17. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  18. package/es2018/plugins/speech-recognize/speech-recognize.js +11 -11
  19. package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
  20. package/es2021/jodit.css +1 -1
  21. package/es2021/jodit.fat.min.js +2 -2
  22. package/es2021/jodit.js +408 -395
  23. package/es2021/jodit.min.js +2 -2
  24. package/es2021/plugins/debug/debug.js +1 -1
  25. package/es2021/plugins/debug/debug.min.js +1 -1
  26. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  27. package/es2021/plugins/speech-recognize/speech-recognize.js +11 -11
  28. package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
  29. package/es2021.en/jodit.css +1 -1
  30. package/es2021.en/jodit.fat.min.js +2 -2
  31. package/es2021.en/jodit.js +408 -395
  32. package/es2021.en/jodit.min.js +2 -2
  33. package/es2021.en/plugins/debug/debug.js +1 -1
  34. package/es2021.en/plugins/debug/debug.min.js +1 -1
  35. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  36. package/es2021.en/plugins/speech-recognize/speech-recognize.js +11 -11
  37. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
  38. package/es5/jodit.css +2 -2
  39. package/es5/jodit.fat.min.js +2 -2
  40. package/es5/jodit.js +413 -400
  41. package/es5/jodit.min.css +2 -2
  42. package/es5/jodit.min.js +2 -2
  43. package/es5/plugins/debug/debug.js +1 -1
  44. package/es5/plugins/debug/debug.min.js +1 -1
  45. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  46. package/es5/plugins/speech-recognize/speech-recognize.js +11 -11
  47. package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
  48. package/esm/core/constants.js +1 -1
  49. package/esm/core/helpers/utils/append-script.js +2 -0
  50. package/esm/core/helpers/utils/config-proto.js +1 -1
  51. package/esm/core/request/ajax.js +1 -1
  52. package/esm/core/ui/helpers/get-control-type.js +15 -9
  53. package/esm/core/ui/helpers/get-strong-control-types.js +1 -1
  54. package/esm/jodit.d.ts +1 -1
  55. package/esm/jodit.js +1 -1
  56. package/esm/modules/file-browser/file-browser.js +1 -1
  57. package/esm/modules/history/history.js +1 -1
  58. package/esm/modules/image-editor/config.js +1 -1
  59. package/esm/modules/image-editor/image-editor.js +1 -1
  60. package/esm/modules/toolbar/button/button.js +2 -1
  61. package/esm/modules/toolbar/button/select/select.js +2 -1
  62. package/esm/modules/uploader/uploader.js +1 -1
  63. package/esm/plugins/about/about.js +1 -1
  64. package/esm/plugins/add-new-line/config.js +1 -1
  65. package/esm/plugins/ai-assistant/config.js +1 -1
  66. package/esm/plugins/backspace/cases/check-remove-char.js +4 -0
  67. package/esm/plugins/bold/bold.js +1 -1
  68. package/esm/plugins/class-span/class-span.js +1 -1
  69. package/esm/plugins/clean-html/config.js +1 -1
  70. package/esm/plugins/clipboard/config.js +1 -1
  71. package/esm/plugins/color/config.js +1 -1
  72. package/esm/plugins/copy-format/copy-format.js +1 -1
  73. package/esm/plugins/file/file.js +1 -1
  74. package/esm/plugins/font/config.js +1 -1
  75. package/esm/plugins/format-block/config.js +6 -4
  76. package/esm/plugins/fullsize/config.js +1 -1
  77. package/esm/plugins/hotkeys/config.d.ts +13 -0
  78. package/esm/plugins/hotkeys/config.js +0 -13
  79. package/esm/plugins/hr/hr.js +1 -1
  80. package/esm/plugins/image/image.js +1 -1
  81. package/esm/plugins/image-properties/config.d.ts +0 -3
  82. package/esm/plugins/image-properties/config.js +3 -0
  83. package/esm/plugins/image-properties/interface.d.ts +121 -0
  84. package/esm/plugins/indent/config.js +1 -1
  85. package/esm/plugins/inline-popup/config/config.js +1 -1
  86. package/esm/plugins/justify/justify.js +10 -6
  87. package/esm/plugins/line-height/config.js +1 -1
  88. package/esm/plugins/link/config.js +1 -1
  89. package/esm/plugins/mobile/config.js +1 -1
  90. package/esm/plugins/ordered-list/config.js +1 -1
  91. package/esm/plugins/paste/config.js +1 -1
  92. package/esm/plugins/print/print.js +1 -1
  93. package/esm/plugins/redo-undo/redo-undo.js +1 -1
  94. package/esm/plugins/search/config.js +1 -1
  95. package/esm/plugins/source/config.js +1 -1
  96. package/esm/plugins/speech-recognize/config.js +1 -1
  97. package/esm/plugins/spellcheck/config.js +1 -1
  98. package/esm/plugins/symbols/config.js +1 -1
  99. package/esm/plugins/table/config.js +1 -1
  100. package/esm/plugins/video/config.js +1 -1
  101. package/esm/types/toolbar.d.ts +1 -2
  102. package/package.json +1 -1
  103. package/types/jodit.d.ts +1 -1
  104. package/types/plugins/hotkeys/config.d.ts +13 -0
  105. package/types/plugins/image-properties/config.d.ts +0 -3
  106. package/types/plugins/image-properties/interface.d.ts +121 -0
  107. package/types/types/toolbar.d.ts +1 -2
package/CHANGELOG.md CHANGED
@@ -9,6 +9,82 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.2.18
13
+
14
+ #### :house: Internal
15
+
16
+ - When connecting third-party scripts, two attributes are now added to the script tag.
17
+ [Jodit not hiding the raw textarea #1086](https://github.com/xdan/jodit/issues/1086)
18
+
19
+ ```json
20
+ {
21
+ "crossorigin": "anonymous",
22
+ "referrerpolicy": "no-referrer"
23
+ }
24
+ ```
25
+
26
+ - [crossorigin](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin)
27
+ - [referrerpolicy](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/referrerPolicy)
28
+
29
+ ## 4.2.17
30
+
31
+ #### :house: Internal
32
+
33
+ - Removed conversion of list arrays into objects when creating a button in the toolbar. Previously the code looked like:
34
+
35
+ ```js
36
+ Jodit.make('#editor', {
37
+ constrols: {
38
+ lineHeight: {
39
+ list: [1, 1.1, 1.2, 1.3, 1.4, 1.5, 2]
40
+ }
41
+ }
42
+ });
43
+ ```
44
+
45
+ was implicitly transformed into an object of the form:
46
+
47
+ ```js
48
+ Jodit.make('#editor', {
49
+ constrols: {
50
+ lineHeight: {
51
+ list: {
52
+ 1: '1',
53
+ 2: '2',
54
+ 1.1: '1.1',
55
+ 1.2: '1.2',
56
+ 1.3: '1.3',
57
+ 1.4: '1.4',
58
+ 1.5: '1.5'
59
+ }
60
+ }
61
+ }
62
+ });
63
+ ```
64
+
65
+ Thus, due to the nature of integer keys, the order of the elements was lost. Now such a transformation does not occur.
66
+ In your code you clearly need to check what came into `list` and if it is an array, then use it as is.
67
+
68
+ ```js
69
+ Jodit.make('#editor', {
70
+ constrols: {
71
+ lineHeight: {
72
+ list: [1, 1.1, 1.2, 1.3, 1.4, 1.5, 2],
73
+ update(editor: IJodit, button): boolean {
74
+ if (Array.isArray(button.control)) {
75
+ // Work with array
76
+ }
77
+ }
78
+ }
79
+ }
80
+ });
81
+ ```
82
+
83
+ ### :bug: Bug Fix
84
+
85
+ - [Backspacing in the editor with preadded styling or added styling is not retained #1120](https://github.com/xdan/jodit/issues/1120)
86
+ - [missing generation of inferface.js and interface.d.ts in esm build path esm\plugins\image-properties #1117](https://github.com/xdan/jodit/issues/1117)
87
+
12
88
  ## 4.2.13
13
89
 
14
90
  ### :bug: Bug Fix
@@ -2620,11 +2696,11 @@ Related with https://github.com/xdan/jodit/issues/574. In some cases need to lim
2620
2696
  - @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
2621
2697
  modeClassName="select")
2622
2698
  - ex: [
2623
- - { value: "", text: "" },
2624
- - { value: "val1", text: "text1" },
2625
- - { value: "val2", text: "text2" },
2626
- - { value: "val3", text: "text3" }
2627
- - ]
2699
+ - { value: "", text: "" },
2700
+ - { value: "val1", text: "text1" },
2701
+ - { value: "val2", text: "text2" },
2702
+ - { value: "val3", text: "text3" }
2703
+ - ]
2628
2704
  PR: https://github.com/xdan/jodit/pull/577 Thanks @s-renier-taonix-fr
2629
2705
 
2630
2706
  ##### New option `statusbar: boolean = true`
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.2.15
4
+ * Version: v4.2.18
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */