jodit 4.2.40 → 4.2.43

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 (116) hide show
  1. package/CHANGELOG.md +52 -5
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +2 -2
  4. package/es2015/jodit.js +118 -53
  5. package/es2015/jodit.min.js +2 -2
  6. package/es2015/plugins/debug/debug.css +1 -1
  7. package/es2015/plugins/debug/debug.js +1 -1
  8. package/es2015/plugins/debug/debug.min.js +1 -1
  9. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  10. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  11. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  12. package/es2018/jodit.css +1 -1
  13. package/es2018/jodit.fat.min.js +2 -2
  14. package/es2018/jodit.js +118 -53
  15. package/es2018/jodit.min.js +2 -2
  16. package/es2018/plugins/debug/debug.css +1 -1
  17. package/es2018/plugins/debug/debug.js +1 -1
  18. package/es2018/plugins/debug/debug.min.js +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  20. package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
  21. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  22. package/es2021/jodit.css +1 -1
  23. package/es2021/jodit.fat.min.js +2 -2
  24. package/es2021/jodit.js +118 -53
  25. package/es2021/jodit.min.js +2 -2
  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 +1 -1
  33. package/es2021.en/jodit.fat.min.js +2 -2
  34. package/es2021.en/jodit.js +118 -53
  35. package/es2021.en/jodit.min.js +2 -2
  36. package/es2021.en/plugins/debug/debug.css +1 -1
  37. package/es2021.en/plugins/debug/debug.js +1 -1
  38. package/es2021.en/plugins/debug/debug.min.js +1 -1
  39. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  40. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  41. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  42. package/es5/164.fat.min.js +1 -1
  43. package/es5/164.min.js +1 -1
  44. package/es5/5.fat.min.js +1 -1
  45. package/es5/5.min.js +1 -1
  46. package/es5/jodit.css +2 -2
  47. package/es5/jodit.fat.min.js +2 -2
  48. package/es5/jodit.js +119 -55
  49. package/es5/jodit.min.css +2 -2
  50. package/es5/jodit.min.js +2 -2
  51. package/es5/plugins/debug/debug.css +1 -1
  52. package/es5/plugins/debug/debug.js +1 -1
  53. package/es5/plugins/debug/debug.min.js +1 -1
  54. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  55. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  56. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  57. package/esm/core/constants.js +1 -1
  58. package/esm/core/helpers/utils/complete-url.d.ts +0 -3
  59. package/esm/core/helpers/utils/complete-url.js +1 -1
  60. package/esm/core/helpers/utils/convert-media-url-to-video-embed.d.ts +4 -1
  61. package/esm/core/helpers/utils/convert-media-url-to-video-embed.js +7 -3
  62. package/esm/core/selection/style/api/extract.js +1 -0
  63. package/esm/jodit.d.ts +11 -1
  64. package/esm/jodit.js +11 -1
  65. package/esm/modules/history/snapshot.d.ts +1 -0
  66. package/esm/modules/history/snapshot.js +8 -1
  67. package/esm/modules/toolbar/button/button.js +18 -9
  68. package/esm/plugins/ai-assistant/langs/index.d.ts +3 -0
  69. package/esm/plugins/ai-assistant/langs/index.js +3 -0
  70. package/esm/plugins/clean-html/config.d.ts +9 -0
  71. package/esm/plugins/image-properties/readers/align.d.ts +3 -1
  72. package/esm/plugins/image-properties/readers/align.js +3 -1
  73. package/esm/plugins/image-properties/readers/index.d.ts +3 -0
  74. package/esm/plugins/image-properties/readers/link.d.ts +3 -0
  75. package/esm/plugins/image-properties/readers/margin.js +3 -0
  76. package/esm/plugins/image-properties/readers/size.js +3 -0
  77. package/esm/plugins/image-properties/ui/ui-image-form.d.ts +3 -0
  78. package/esm/plugins/image-properties/ui/ui-image-main-tab.d.ts +3 -0
  79. package/esm/plugins/image-properties/ui/ui-image-position-tab.d.ts +3 -0
  80. package/esm/plugins/image-properties/utils/open-image-editor.d.ts +3 -0
  81. package/esm/plugins/image-properties/utils/open-image-popup.d.ts +3 -0
  82. package/esm/plugins/image-properties/utils/utils.js +3 -0
  83. package/esm/plugins/image-properties/writers/index.d.ts +3 -0
  84. package/esm/plugins/image-properties/writers/link.d.ts +3 -0
  85. package/esm/plugins/image-properties/writers/margin.d.ts +3 -0
  86. package/esm/plugins/image-properties/writers/size.js +3 -0
  87. package/esm/plugins/link/link.js +6 -2
  88. package/esm/plugins/symbols/config.js +6 -7
  89. package/esm/plugins/symbols/symbols.d.ts +1 -3
  90. package/esm/plugins/symbols/symbols.js +16 -11
  91. package/esm/plugins/video/config.d.ts +29 -0
  92. package/esm/plugins/video/config.js +26 -17
  93. package/esm/plugins/wrap-nodes/config.d.ts +5 -1
  94. package/esm/types/history.d.ts +3 -0
  95. package/package.json +1 -1
  96. package/types/core/helpers/utils/complete-url.d.ts +0 -3
  97. package/types/core/helpers/utils/convert-media-url-to-video-embed.d.ts +4 -1
  98. package/types/jodit.d.ts +11 -1
  99. package/types/modules/history/snapshot.d.ts +1 -0
  100. package/types/plugins/ai-assistant/langs/index.d.ts +3 -0
  101. package/types/plugins/clean-html/config.d.ts +9 -0
  102. package/types/plugins/image-properties/readers/align.d.ts +3 -1
  103. package/types/plugins/image-properties/readers/index.d.ts +3 -0
  104. package/types/plugins/image-properties/readers/link.d.ts +3 -0
  105. package/types/plugins/image-properties/ui/ui-image-form.d.ts +3 -0
  106. package/types/plugins/image-properties/ui/ui-image-main-tab.d.ts +3 -0
  107. package/types/plugins/image-properties/ui/ui-image-position-tab.d.ts +3 -0
  108. package/types/plugins/image-properties/utils/open-image-editor.d.ts +3 -0
  109. package/types/plugins/image-properties/utils/open-image-popup.d.ts +3 -0
  110. package/types/plugins/image-properties/writers/index.d.ts +3 -0
  111. package/types/plugins/image-properties/writers/link.d.ts +3 -0
  112. package/types/plugins/image-properties/writers/margin.d.ts +3 -0
  113. package/types/plugins/symbols/symbols.d.ts +1 -3
  114. package/types/plugins/video/config.d.ts +29 -0
  115. package/types/plugins/wrap-nodes/config.d.ts +5 -1
  116. package/types/types/history.d.ts +3 -0
package/CHANGELOG.md CHANGED
@@ -9,6 +9,53 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.2.42
13
+
14
+ ### :rocket: New Feature
15
+
16
+ - With the symbols plugin you can use the Shift key to select multiple symbols.
17
+ [special character #1194](https://github.com/xdan/jodit/issues/1194)
18
+
19
+ ### :bug: Bug Fix
20
+
21
+ - Fixed a bug in the logic of the ControlType.popup method; if the method did not return anything,
22
+ it could be used as an alternative to `exec`. But when called again it did not work.
23
+ - Fixed logic in the symbols plugin
24
+ - [Does it have an API for closing record operations #1193](https://github.com/xdan/jodit/issues/1193)
25
+
26
+ ## 4.2.41
27
+
28
+ ### :rocket: New Feature
29
+
30
+ - Related issue: [The video plugin only support content from youtube and vimeo #1170](https://github.com/xdan/jodit/issues/1170)
31
+ Added options `video.defaultWidth`, `video.defaultHeight`, and `video.parseUrlToVideoEmbed` to the video plugin. The `parseUrlToVideoEmbed` option allows you to add your own video parser.
32
+
33
+ ```ts
34
+ Jodit.make('#editor', {
35
+ buttons: 'video',
36
+ video: {
37
+ defaultWidth: 560, // Default: 400
38
+ defaultHeight: 315, // Default: 345
39
+ parseUrlToVideoEmbed: (url, size) => {
40
+ // Add your own video provider
41
+ if (/https:\/\/sitename\.com/.test(url)) {
42
+ return `<iframe width="${size.width}" height="${size.height}" src="${url}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>`;
43
+ }
44
+
45
+ return Jodit.modules.Helpers.convertMediaUrlToVideoEmbed(
46
+ url,
47
+ size
48
+ );
49
+ }
50
+ },
51
+ controls: {
52
+ video: {
53
+ tooltip: 'Insert video'
54
+ }
55
+ }
56
+ });
57
+ ```
58
+
12
59
  ## 4.2.40
13
60
 
14
61
  ### :bug: Bug Fix
@@ -2896,11 +2943,11 @@ Related with https://github.com/xdan/jodit/issues/574. In some cases need to lim
2896
2943
  - @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
2897
2944
  modeClassName="select")
2898
2945
  - ex: [
2899
- - { value: "", text: "" },
2900
- - { value: "val1", text: "text1" },
2901
- - { value: "val2", text: "text2" },
2902
- - { value: "val3", text: "text3" }
2903
- - ]
2946
+ - { value: "", text: "" },
2947
+ - { value: "val1", text: "text1" },
2948
+ - { value: "val2", text: "text2" },
2949
+ - { value: "val3", text: "text3" }
2950
+ - ]
2904
2951
  PR: https://github.com/xdan/jodit/pull/577 Thanks @s-renier-taonix-fr
2905
2952
 
2906
2953
  ##### 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.40
4
+ * Version: v4.2.43
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */