jodit 4.2.15 → 4.2.17

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 (103) hide show
  1. package/CHANGELOG.md +64 -5
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +2 -2
  4. package/es2015/jodit.js +406 -382
  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 +406 -384
  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 +406 -382
  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 +406 -382
  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 +411 -387
  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/config-proto.js +1 -1
  50. package/esm/core/request/ajax.js +1 -1
  51. package/esm/core/ui/helpers/get-control-type.js +15 -9
  52. package/esm/core/ui/helpers/get-strong-control-types.js +1 -1
  53. package/esm/jodit.d.ts +1 -1
  54. package/esm/jodit.js +1 -1
  55. package/esm/modules/file-browser/file-browser.js +1 -1
  56. package/esm/modules/history/history.js +1 -1
  57. package/esm/modules/image-editor/config.js +1 -1
  58. package/esm/modules/image-editor/image-editor.js +1 -1
  59. package/esm/modules/toolbar/button/button.js +2 -1
  60. package/esm/modules/toolbar/button/select/select.js +2 -1
  61. package/esm/modules/uploader/uploader.js +1 -1
  62. package/esm/plugins/about/about.js +1 -1
  63. package/esm/plugins/add-new-line/config.js +1 -1
  64. package/esm/plugins/ai-assistant/config.js +1 -1
  65. package/esm/plugins/backspace/cases/check-remove-char.js +4 -0
  66. package/esm/plugins/bold/bold.js +1 -1
  67. package/esm/plugins/class-span/class-span.js +1 -1
  68. package/esm/plugins/clean-html/config.js +1 -1
  69. package/esm/plugins/clipboard/config.js +1 -1
  70. package/esm/plugins/color/config.js +1 -1
  71. package/esm/plugins/copy-format/copy-format.js +1 -1
  72. package/esm/plugins/file/file.js +1 -1
  73. package/esm/plugins/font/config.js +1 -1
  74. package/esm/plugins/format-block/config.js +6 -4
  75. package/esm/plugins/fullsize/config.js +1 -1
  76. package/esm/plugins/hr/hr.js +1 -1
  77. package/esm/plugins/image/image.js +1 -1
  78. package/esm/plugins/image-properties/config.d.ts +0 -3
  79. package/esm/plugins/image-properties/config.js +3 -0
  80. package/esm/plugins/image-properties/interface.d.ts +121 -0
  81. package/esm/plugins/indent/config.js +1 -1
  82. package/esm/plugins/inline-popup/config/config.js +1 -1
  83. package/esm/plugins/justify/justify.js +10 -6
  84. package/esm/plugins/line-height/config.js +1 -1
  85. package/esm/plugins/link/config.js +1 -1
  86. package/esm/plugins/mobile/config.js +1 -1
  87. package/esm/plugins/ordered-list/config.js +1 -1
  88. package/esm/plugins/paste/config.js +1 -1
  89. package/esm/plugins/print/print.js +1 -1
  90. package/esm/plugins/redo-undo/redo-undo.js +1 -1
  91. package/esm/plugins/search/config.js +1 -1
  92. package/esm/plugins/source/config.js +1 -1
  93. package/esm/plugins/speech-recognize/config.js +1 -1
  94. package/esm/plugins/spellcheck/config.js +1 -1
  95. package/esm/plugins/symbols/config.js +1 -1
  96. package/esm/plugins/table/config.js +1 -1
  97. package/esm/plugins/video/config.js +1 -1
  98. package/esm/types/toolbar.d.ts +1 -2
  99. package/package.json +1 -1
  100. package/types/jodit.d.ts +1 -1
  101. package/types/plugins/image-properties/config.d.ts +0 -3
  102. package/types/plugins/image-properties/interface.d.ts +121 -0
  103. package/types/types/toolbar.d.ts +1 -2
package/CHANGELOG.md CHANGED
@@ -9,6 +9,65 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.2.17
13
+
14
+ #### :house: Internal
15
+
16
+ - Removed conversion of list arrays into objects when creating a button in the toolbar. Previously the code looked like:
17
+
18
+ ```js
19
+ Jodit.make('#editor', {
20
+ constrols: {
21
+ lineHeight: {
22
+ list: [1, 1.1, 1.2, 1.3, 1.4, 1.5, 2]
23
+ }
24
+ }
25
+ });
26
+ ```
27
+
28
+ was implicitly transformed into an object of the form:
29
+
30
+ ```js
31
+ Jodit.make('#editor', {
32
+ constrols: {
33
+ lineHeight: {
34
+ list: {
35
+ 1: '1',
36
+ 2: '2',
37
+ 1.1: '1.1',
38
+ 1.2: '1.2',
39
+ 1.3: '1.3',
40
+ 1.4: '1.4',
41
+ 1.5: '1.5'
42
+ }
43
+ }
44
+ }
45
+ });
46
+ ```
47
+
48
+ Thus, due to the nature of integer keys, the order of the elements was lost. Now such a transformation does not occur.
49
+ In your code you clearly need to check what came into `list` and if it is an array, then use it as is.
50
+
51
+ ```js
52
+ Jodit.make('#editor', {
53
+ constrols: {
54
+ lineHeight: {
55
+ list: [1, 1.1, 1.2, 1.3, 1.4, 1.5, 2],
56
+ update(editor: IJodit, button): boolean {
57
+ if (Array.isArray(button.control)) {
58
+ // Work with array
59
+ }
60
+ }
61
+ }
62
+ }
63
+ });
64
+ ```
65
+
66
+ ### :bug: Bug Fix
67
+
68
+ - [Backspacing in the editor with preadded styling or added styling is not retained #1120](https://github.com/xdan/jodit/issues/1120)
69
+ - [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)
70
+
12
71
  ## 4.2.13
13
72
 
14
73
  ### :bug: Bug Fix
@@ -2620,11 +2679,11 @@ Related with https://github.com/xdan/jodit/issues/574. In some cases need to lim
2620
2679
  - @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
2621
2680
  modeClassName="select")
2622
2681
  - ex: [
2623
- - { value: "", text: "" },
2624
- - { value: "val1", text: "text1" },
2625
- - { value: "val2", text: "text2" },
2626
- - { value: "val3", text: "text3" }
2627
- - ]
2682
+ - { value: "", text: "" },
2683
+ - { value: "val1", text: "text1" },
2684
+ - { value: "val2", text: "text2" },
2685
+ - { value: "val3", text: "text3" }
2686
+ - ]
2628
2687
  PR: https://github.com/xdan/jodit/pull/577 Thanks @s-renier-taonix-fr
2629
2688
 
2630
2689
  ##### 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.17
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */