jodit 4.2.40 → 4.2.41

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 (69) hide show
  1. package/CHANGELOG.md +38 -5
  2. package/es2015/jodit.css +1 -1
  3. package/es2015/jodit.fat.min.js +2 -2
  4. package/es2015/jodit.js +39 -22
  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 +39 -22
  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 +39 -22
  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 +39 -22
  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 +40 -24
  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/convert-media-url-to-video-embed.d.ts +4 -1
  59. package/esm/core/helpers/utils/convert-media-url-to-video-embed.js +7 -3
  60. package/esm/plugins/clean-html/config.d.ts +9 -0
  61. package/esm/plugins/link/link.js +6 -2
  62. package/esm/plugins/video/config.d.ts +29 -0
  63. package/esm/plugins/video/config.js +26 -17
  64. package/esm/plugins/wrap-nodes/config.d.ts +5 -1
  65. package/package.json +1 -1
  66. package/types/core/helpers/utils/convert-media-url-to-video-embed.d.ts +4 -1
  67. package/types/plugins/clean-html/config.d.ts +9 -0
  68. package/types/plugins/video/config.d.ts +29 -0
  69. package/types/plugins/wrap-nodes/config.d.ts +5 -1
package/CHANGELOG.md CHANGED
@@ -9,6 +9,39 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.2.41
13
+
14
+ ### :rocket: New Feature
15
+
16
+ - Related issue: [The video plugin only support content from youtube and vimeo #1170](https://github.com/xdan/jodit/issues/1170)
17
+ Added options `video.defaultWidth`, `video.defaultHeight`, and `video.parseUrlToVideoEmbed` to the video plugin. The `parseUrlToVideoEmbed` option allows you to add your own video parser.
18
+
19
+ ```ts
20
+ Jodit.make('#editor', {
21
+ buttons: 'video',
22
+ video: {
23
+ defaultWidth: 560, // Default: 400
24
+ defaultHeight: 315, // Default: 345
25
+ parseUrlToVideoEmbed: (url, size) => {
26
+ // Add your own video provider
27
+ if (/https:\/\/sitename\.com/.test(url)) {
28
+ 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>`;
29
+ }
30
+
31
+ return Jodit.modules.Helpers.convertMediaUrlToVideoEmbed(
32
+ url,
33
+ size
34
+ );
35
+ }
36
+ },
37
+ controls: {
38
+ video: {
39
+ tooltip: 'Insert video'
40
+ }
41
+ }
42
+ });
43
+ ```
44
+
12
45
  ## 4.2.40
13
46
 
14
47
  ### :bug: Bug Fix
@@ -2896,11 +2929,11 @@ Related with https://github.com/xdan/jodit/issues/574. In some cases need to lim
2896
2929
  - @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
2897
2930
  modeClassName="select")
2898
2931
  - ex: [
2899
- - { value: "", text: "" },
2900
- - { value: "val1", text: "text1" },
2901
- - { value: "val2", text: "text2" },
2902
- - { value: "val3", text: "text3" }
2903
- - ]
2932
+ - { value: "", text: "" },
2933
+ - { value: "val1", text: "text1" },
2934
+ - { value: "val2", text: "text2" },
2935
+ - { value: "val3", text: "text3" }
2936
+ - ]
2904
2937
  PR: https://github.com/xdan/jodit/pull/577 Thanks @s-renier-taonix-fr
2905
2938
 
2906
2939
  ##### 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.41
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */