jodit 4.2.41 → 4.2.45

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 (119) hide show
  1. package/CHANGELOG.md +65 -5
  2. package/es2015/jodit.css +5 -7
  3. package/es2015/jodit.fat.min.css +1 -1
  4. package/es2015/jodit.fat.min.js +2 -2
  5. package/es2015/jodit.js +121 -45
  6. package/es2015/jodit.min.css +1 -1
  7. package/es2015/jodit.min.js +2 -2
  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.css +5 -7
  15. package/es2018/jodit.fat.min.css +1 -1
  16. package/es2018/jodit.fat.min.js +2 -2
  17. package/es2018/jodit.js +121 -45
  18. package/es2018/jodit.min.css +1 -1
  19. package/es2018/jodit.min.js +2 -2
  20. package/es2018/plugins/debug/debug.css +1 -1
  21. package/es2018/plugins/debug/debug.js +1 -1
  22. package/es2018/plugins/debug/debug.min.js +1 -1
  23. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  24. package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
  25. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  26. package/es2021/jodit.css +5 -7
  27. package/es2021/jodit.fat.min.css +1 -1
  28. package/es2021/jodit.fat.min.js +2 -2
  29. package/es2021/jodit.js +121 -45
  30. package/es2021/jodit.min.css +1 -1
  31. package/es2021/jodit.min.js +2 -2
  32. package/es2021/plugins/debug/debug.css +1 -1
  33. package/es2021/plugins/debug/debug.js +1 -1
  34. package/es2021/plugins/debug/debug.min.js +1 -1
  35. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  36. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  37. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  38. package/es2021.en/jodit.css +5 -7
  39. package/es2021.en/jodit.fat.min.css +1 -1
  40. package/es2021.en/jodit.fat.min.js +2 -2
  41. package/es2021.en/jodit.js +121 -45
  42. package/es2021.en/jodit.min.css +1 -1
  43. package/es2021.en/jodit.min.js +2 -2
  44. package/es2021.en/plugins/debug/debug.css +1 -1
  45. package/es2021.en/plugins/debug/debug.js +1 -1
  46. package/es2021.en/plugins/debug/debug.min.js +1 -1
  47. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  48. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  49. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  50. package/es5/164.fat.min.js +1 -1
  51. package/es5/164.min.js +1 -1
  52. package/es5/5.fat.min.js +1 -1
  53. package/es5/5.min.js +1 -1
  54. package/es5/jodit.css +35 -66
  55. package/es5/jodit.fat.min.css +1 -1
  56. package/es5/jodit.fat.min.js +2 -2
  57. package/es5/jodit.js +121 -45
  58. package/es5/jodit.min.css +3 -3
  59. package/es5/jodit.min.js +2 -2
  60. package/es5/plugins/debug/debug.css +1 -1
  61. package/es5/plugins/debug/debug.js +1 -1
  62. package/es5/plugins/debug/debug.min.js +1 -1
  63. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  64. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  65. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  66. package/esm/core/constants.js +1 -1
  67. package/esm/core/helpers/utils/complete-url.d.ts +0 -3
  68. package/esm/core/helpers/utils/complete-url.js +1 -1
  69. package/esm/core/helpers/utils/config-proto.d.ts +18 -0
  70. package/esm/core/helpers/utils/config-proto.js +25 -0
  71. package/esm/core/selection/style/api/extract.js +1 -0
  72. package/esm/jodit.d.ts +11 -1
  73. package/esm/jodit.js +14 -8
  74. package/esm/modules/history/snapshot.d.ts +1 -0
  75. package/esm/modules/history/snapshot.js +8 -1
  76. package/esm/modules/toolbar/button/button.js +18 -9
  77. package/esm/plugins/ai-assistant/langs/index.d.ts +3 -0
  78. package/esm/plugins/ai-assistant/langs/index.js +3 -0
  79. package/esm/plugins/image-properties/readers/align.d.ts +3 -1
  80. package/esm/plugins/image-properties/readers/align.js +3 -1
  81. package/esm/plugins/image-properties/readers/index.d.ts +3 -0
  82. package/esm/plugins/image-properties/readers/link.d.ts +3 -0
  83. package/esm/plugins/image-properties/readers/margin.js +3 -0
  84. package/esm/plugins/image-properties/readers/size.js +3 -0
  85. package/esm/plugins/image-properties/ui/ui-image-form.d.ts +3 -0
  86. package/esm/plugins/image-properties/ui/ui-image-main-tab.d.ts +3 -0
  87. package/esm/plugins/image-properties/ui/ui-image-position-tab.d.ts +3 -0
  88. package/esm/plugins/image-properties/utils/open-image-editor.d.ts +3 -0
  89. package/esm/plugins/image-properties/utils/open-image-popup.d.ts +3 -0
  90. package/esm/plugins/image-properties/utils/utils.js +3 -0
  91. package/esm/plugins/image-properties/writers/index.d.ts +3 -0
  92. package/esm/plugins/image-properties/writers/link.d.ts +3 -0
  93. package/esm/plugins/image-properties/writers/margin.d.ts +3 -0
  94. package/esm/plugins/image-properties/writers/size.js +3 -0
  95. package/esm/plugins/source/editor/engines/ace.js +4 -0
  96. package/esm/plugins/source/editor/engines/area.js +2 -1
  97. package/esm/plugins/symbols/config.js +6 -7
  98. package/esm/plugins/symbols/symbols.d.ts +1 -3
  99. package/esm/plugins/symbols/symbols.js +16 -11
  100. package/esm/types/history.d.ts +3 -0
  101. package/package.json +1 -1
  102. package/types/core/helpers/utils/complete-url.d.ts +0 -3
  103. package/types/core/helpers/utils/config-proto.d.ts +18 -0
  104. package/types/jodit.d.ts +11 -1
  105. package/types/modules/history/snapshot.d.ts +1 -0
  106. package/types/plugins/ai-assistant/langs/index.d.ts +3 -0
  107. package/types/plugins/image-properties/readers/align.d.ts +3 -1
  108. package/types/plugins/image-properties/readers/index.d.ts +3 -0
  109. package/types/plugins/image-properties/readers/link.d.ts +3 -0
  110. package/types/plugins/image-properties/ui/ui-image-form.d.ts +3 -0
  111. package/types/plugins/image-properties/ui/ui-image-main-tab.d.ts +3 -0
  112. package/types/plugins/image-properties/ui/ui-image-position-tab.d.ts +3 -0
  113. package/types/plugins/image-properties/utils/open-image-editor.d.ts +3 -0
  114. package/types/plugins/image-properties/utils/open-image-popup.d.ts +3 -0
  115. package/types/plugins/image-properties/writers/index.d.ts +3 -0
  116. package/types/plugins/image-properties/writers/link.d.ts +3 -0
  117. package/types/plugins/image-properties/writers/margin.d.ts +3 -0
  118. package/types/plugins/symbols/symbols.d.ts +1 -3
  119. package/types/types/history.d.ts +3 -0
package/CHANGELOG.md CHANGED
@@ -9,6 +9,66 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.2.44
13
+
14
+ ### :rocket: New Feature
15
+
16
+ - Added method `Jodit.modules.Helpers.ConfigDeepFlatten` it allows make plain object from prototype chain object.
17
+
18
+ ```typescript
19
+ const editor = Jodit.make('#editor', {
20
+ image: {
21
+ dialogWidth: 500
22
+ }
23
+ });
24
+
25
+ console.log(editor.o.image.openOnDblClick) // true
26
+ // But you can't get all options in plain object
27
+ console.log(JSON.stringify(editor.o.image)); // {"dialogWidth":500}
28
+
29
+ const plain = Jodit.modules.Helpers.ConfigDeepFlatten(editor.o.image);
30
+ console.log(JSON.stringify(plain)); // {"dialogWidth":500, "openOnDblClick": true, "editSrc": true, ...}
31
+ ```
32
+
33
+ #### :house: Internal
34
+
35
+ - Update dependencies
36
+
37
+ ```plain
38
+ @eslint/compat ^1.2.2 → ^1.2.3
39
+ @eslint/eslintrc ^3.1.0 → ^3.2.0
40
+ @eslint/js ^9.14.0 → ^9.16.0
41
+ @playwright/test ^1.48.2 → ^1.49.0
42
+ @types/mocha ^10.0.9 → ^10.0.10
43
+ @types/node ^22.8.7 → ^22.10.1
44
+ @typescript-eslint/eslint-plugin ^8.12.2 → ^8.16.0
45
+ @typescript-eslint/parser ^8.12.2 → ^8.16.0
46
+ axios ^1.7.7 → ^1.7.8
47
+ eslint ^9.14.0 → ^9.16.0
48
+ eslint-plugin-tsdoc ^0.3.0 → ^0.4.0
49
+ globals ^15.11.0 → ^15.12.0
50
+ less ^4.2.0 → ^4.2.1
51
+ postcss >=8.4.47 → >=8.4.49
52
+ prettier ^3.3.3 → ^3.4.1
53
+ stylelint ^16.10.0 → ^16.11.0
54
+ typescript ^5.6.3 → ^5.7.2
55
+ ```
56
+
57
+
58
+ ## 4.2.42
59
+
60
+ ### :rocket: New Feature
61
+
62
+ - With the symbols plugin you can use the Shift key to select multiple symbols.
63
+ [special character #1194](https://github.com/xdan/jodit/issues/1194)
64
+
65
+ ### :bug: Bug Fix
66
+
67
+ - Fixed a bug in the logic of the ControlType.popup method; if the method did not return anything,
68
+ it could be used as an alternative to `exec`. But when called again it did not work.
69
+ - Fixed logic in the symbols plugin
70
+ - [Does it have an API for closing record operations #1193](https://github.com/xdan/jodit/issues/1193)
71
+
12
72
  ## 4.2.41
13
73
 
14
74
  ### :rocket: New Feature
@@ -2929,11 +2989,11 @@ Related with https://github.com/xdan/jodit/issues/574. In some cases need to lim
2929
2989
  - @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
2930
2990
  modeClassName="select")
2931
2991
  - ex: [
2932
- - { value: "", text: "" },
2933
- - { value: "val1", text: "text1" },
2934
- - { value: "val2", text: "text2" },
2935
- - { value: "val3", text: "text3" }
2936
- - ]
2992
+ - { value: "", text: "" },
2993
+ - { value: "val1", text: "text1" },
2994
+ - { value: "val2", text: "text2" },
2995
+ - { value: "val3", text: "text3" }
2996
+ - ]
2937
2997
  PR: https://github.com/xdan/jodit/pull/577 Thanks @s-renier-taonix-fr
2938
2998
 
2939
2999
  ##### 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.41
4
+ * Version: v4.2.45
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -1235,8 +1235,7 @@
1235
1235
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
1236
1236
  */
1237
1237
  :root {
1238
- --jd-popup-box-shadow: 0 4px 1px -2px rgba(76, 76, 76, 0.2),
1239
- 0 3px 3px 0 rgb(76 76 76 / 15%), 0 1px 4px 0 rgb(76 76 76 / 13%);
1238
+ --jd-popup-box-shadow: 0 4px 1px -2px rgba(76, 76, 76, 0.2), 0 3px 3px 0 rgba(76, 76, 76, 0.15), 0 1px 4px 0 rgba(76, 76, 76, 0.13);
1240
1239
  --jd-popup-max-height: max(50vh, 350px);
1241
1240
  }
1242
1241
  .jodit-popup {
@@ -3531,8 +3530,7 @@ a + .jodit-file-browser-tree__source-title {
3531
3530
  * Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
3532
3531
  */
3533
3532
  .jodit-tabs {
3534
- --jd-box-shadow-tabs: 0 0 #0000, 0 1px 3px 0 rgba(0, 0, 0, 0.1),
3535
- 0 1px 2px -1px rgba(0, 0, 0, 0.1);
3533
+ --jd-box-shadow-tabs: 0 0 #0000, 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
3536
3534
  font-family: var(--jd-font-default);
3537
3535
  font-size: var(--jd-font-size-default);
3538
3536
  }
@@ -4425,6 +4423,7 @@ html.jodit_fullsize-box_true {
4425
4423
  margin-bottom: 2px;
4426
4424
  margin-left: 2px;
4427
4425
  vertical-align: top;
4426
+ cursor: pointer;
4428
4427
  }
4429
4428
  .jodit-form__inserter .jodit-form__table-creator-box .jodit-form__container > div > span:first-child {
4430
4429
  margin-left: 0;
@@ -4521,8 +4520,7 @@ html.jodit_fullsize-box_true {
4521
4520
  --jd-color-button-background-hover: #dcdcdc;
4522
4521
  --jd-color-button-background-hover-opacity40: rgba(220, 220, 220, 0.4);
4523
4522
  --jd-color-button-background-hover-opacity60: rgba(220, 220, 220, 0.6);
4524
- --jd-font-default: -apple-system, blinkmacsystemfont, 'Segoe UI', roboto,
4525
- oxygen-sans, ubuntu, cantarell, 'Helvetica Neue', sans-serif;
4523
+ --jd-font-default: -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, oxygen-sans, ubuntu, cantarell, 'Helvetica Neue', sans-serif;
4526
4524
  --jd-font-size-default: 14px;
4527
4525
  --jd-font-size-small: 11px;
4528
4526
  --jd-color-text-icons: rgba(0, 0, 0, 0.75);