jodit 4.0.0-beta.86 → 4.0.0-beta.88

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 (104) hide show
  1. package/CHANGELOG.md +42 -8
  2. package/README.md +5 -5
  3. package/es2015/jodit.css +1 -1
  4. package/es2015/jodit.fat.min.js +2 -2
  5. package/es2015/jodit.js +46 -43
  6. package/es2015/jodit.min.js +2 -2
  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 +46 -43
  15. package/es2018/jodit.min.js +2 -2
  16. package/es2018/plugins/debug/debug.js +1 -1
  17. package/es2018/plugins/debug/debug.min.js +1 -1
  18. package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
  19. package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
  20. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  21. package/es2021/jodit.css +1 -1
  22. package/es2021/jodit.fat.min.js +2 -2
  23. package/es2021/jodit.js +43 -43
  24. package/es2021/jodit.min.js +2 -2
  25. package/es2021/plugins/debug/debug.js +1 -1
  26. package/es2021/plugins/debug/debug.min.js +1 -1
  27. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  28. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  29. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  30. package/es2021.en/jodit.css +1 -1
  31. package/es2021.en/jodit.fat.min.js +2 -2
  32. package/es2021.en/jodit.js +43 -43
  33. package/es2021.en/jodit.min.js +2 -2
  34. package/es2021.en/plugins/debug/debug.js +1 -1
  35. package/es2021.en/plugins/debug/debug.min.js +1 -1
  36. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  37. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  38. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  39. package/es5/jodit.css +2 -2
  40. package/es5/jodit.fat.min.js +2 -2
  41. package/es5/jodit.js +85 -69
  42. package/es5/jodit.min.css +2 -2
  43. package/es5/jodit.min.js +2 -2
  44. package/es5/plugins/debug/debug.js +1 -1
  45. package/es5/plugins/debug/debug.min.js +1 -1
  46. package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
  47. package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
  48. package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
  49. package/esm/core/constants.js +1 -1
  50. package/esm/core/selection/interface.d.ts +5 -0
  51. package/esm/core/selection/interface.js +6 -1
  52. package/esm/core/selection/style/commit-style.js +2 -0
  53. package/esm/core/ui/button/button/button.js +2 -1
  54. package/esm/core/ui/button/group/group.js +2 -1
  55. package/esm/core/ui/button/tooltip/tooltip.js +2 -1
  56. package/esm/core/ui/element.js +2 -1
  57. package/esm/core/ui/form/block/block.js +2 -1
  58. package/esm/core/ui/form/form.js +2 -1
  59. package/esm/core/ui/form/inputs/area/area.js +2 -1
  60. package/esm/core/ui/form/inputs/checkbox/checkbox.js +2 -1
  61. package/esm/core/ui/form/inputs/file/file.js +2 -1
  62. package/esm/core/ui/form/inputs/input/input.js +2 -1
  63. package/esm/core/ui/form/inputs/select/select.js +2 -1
  64. package/esm/core/ui/group/group.js +2 -1
  65. package/esm/core/ui/group/list.js +2 -1
  66. package/esm/core/ui/group/separator.js +2 -1
  67. package/esm/core/ui/group/spacer.js +2 -1
  68. package/esm/core/ui/icon.js +4 -1
  69. package/esm/core/view/view.js +2 -1
  70. package/esm/jodit.js +3 -11
  71. package/esm/modules/context-menu/context-menu.js +2 -1
  72. package/esm/modules/dialog/dialog.js +2 -1
  73. package/esm/modules/file-browser/file-browser.js +2 -1
  74. package/esm/modules/image-editor/image-editor.js +2 -1
  75. package/esm/modules/messages/message.js +2 -1
  76. package/esm/modules/messages/messages.js +2 -1
  77. package/esm/modules/status-bar/status-bar.js +2 -1
  78. package/esm/modules/toolbar/button/button.js +2 -1
  79. package/esm/modules/toolbar/button/content.js +2 -1
  80. package/esm/modules/toolbar/button/select/select.js +2 -1
  81. package/esm/modules/toolbar/collection/collection.js +2 -1
  82. package/esm/modules/toolbar/collection/editor-collection.js +2 -1
  83. package/esm/plugins/backspace/interface.d.ts +9 -8
  84. package/esm/plugins/resize-handler/resize-handler.js +2 -1
  85. package/esm/plugins/search/ui/search.js +2 -1
  86. package/esm/plugins/size/size.js +2 -1
  87. package/esm/plugins/speech-recognize/helpers/recognize-manager.js +2 -1
  88. package/esm/plugins/wrap-nodes/wrap-nodes.js +34 -30
  89. package/examples/arabic.lang.html +111 -64
  90. package/examples/assets/app.css +1 -3
  91. package/examples/color-picker.html +122 -72
  92. package/examples/custom-icons.html +204 -157
  93. package/examples/custom-toolbar.html +110 -63
  94. package/examples/example.default.html +4 -3
  95. package/examples/fullsize.html +107 -60
  96. package/examples/index.html +6 -5
  97. package/examples/inline-mode.html +193 -92
  98. package/examples/oneinstance.html +138 -90
  99. package/examples/theme.html +6 -5
  100. package/package.json +1 -1
  101. package/types/core/selection/interface.d.ts +5 -0
  102. package/types/plugins/backspace/interface.d.ts +9 -8
  103. package/examples/assets/prism.css +0 -200
  104. package/examples/assets/prism.js +0 -1254
package/CHANGELOG.md CHANGED
@@ -9,9 +9,43 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 4.0.0-beta.88
13
+
14
+ ### :bug: Bug Fix
15
+
16
+ - Fixed a bug where the cursor, when positioned at the start of the h1 tag and a style was applied to the h1 tag, would move up one tag level.
17
+ - [Firefox specific execCommands no longer needed #1028](https://github.com/xdan/jodit/issues/1028)
18
+
19
+ ## 4.0.0-beta.78
20
+
21
+ - Update
22
+
23
+ ```
24
+ @types/ace ^0.0.48 → ^0.0.49
25
+ @types/fs-extra ^11.0.1 → ^11.0.2
26
+ @types/karma ^6.3.4 → ^6.3.5
27
+ @types/node ^20.5.7 → ^20.8.3
28
+ @types/postcss-css-variables ^0.18.0 → ^0.18.1
29
+ @types/yargs ^17.0.24 → ^17.0.28
30
+ @typescript-eslint/eslint-plugin ^6.5.0 → ^6.7.4
31
+ @typescript-eslint/parser ^6.5.0 → ^6.7.4
32
+ autoprefixer ^10.4.15 → ^10.4.16
33
+ axios ^1.5.0 → ^1.5.1
34
+ chai ^4.3.8 → ^4.3.10
35
+ core-js ^3.32.1 → ^3.33.0
36
+ eslint ^8.48.0 → ^8.51.0
37
+ eslint-plugin-mocha ^10.1.0 → ^10.2.0
38
+ glob ^10.3.3 → ^10.3.10
39
+ postcss >=8.4.28 → >=8.4.31
40
+ prettier ^3.0.2 → ^3.0.3
41
+ ts-loader ^9.4.4 → ^9.5.0
42
+
43
+ ```
44
+
12
45
  ## 4.0.0-beta.78
13
46
 
14
- - Update
47
+ - Update
48
+
15
49
  ```
16
50
  @types/karma ^6.3.3 → ^6.3.4
17
51
  @types/node ^20.1.0 → ^20.5.0
@@ -137,9 +171,9 @@ yargs ^17.7.1 → ^17.7.2
137
171
  - Build in es2018 target was removed, instead es2021 was added
138
172
  - Event `getIcon` was removed. Use option `getIcon` instead
139
173
 
140
- ```js
174
+ ```ts
141
175
  Jodit.make('#editor', {
142
- getIcon: (name: string) => {
176
+ getIcon: (name: string, clearName: string) => {
143
177
  if (name === 'bold') {
144
178
  return '<svg>...</svg>';
145
179
  }
@@ -2220,11 +2254,11 @@ Related with https://github.com/xdan/jodit/issues/574. In some cases need to lim
2220
2254
  - @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
2221
2255
  modeClassName="select")
2222
2256
  - ex: [
2223
- - { value: "", text: "" },
2224
- - { value: "val1", text: "text1" },
2225
- - { value: "val2", text: "text2" },
2226
- - { value: "val3", text: "text3" }
2227
- - ]
2257
+ - { value: "", text: "" },
2258
+ - { value: "val1", text: "text1" },
2259
+ - { value: "val2", text: "text2" },
2260
+ - { value: "val3", text: "text3" }
2261
+ - ]
2228
2262
  PR: https://github.com/xdan/jodit/pull/577 Thanks @s-renier-taonix-fr
2229
2263
 
2230
2264
  ##### New option `statusbar: boolean = true`
package/README.md CHANGED
@@ -16,7 +16,7 @@ without the use of additional libraries. It includes a file editor and image edi
16
16
  - [Documentation](https://xdsoft.net/jodit/docs/)
17
17
  - [Download & Changes](https://github.com/xdan/jodit/releases)
18
18
  - [Changelog](https://github.com/xdan/jodit/blob/main/CHANGELOG.md)
19
- - [Examples](https://xdan.github.io/jodit/examples/)
19
+ - [Examples](https://xdan.github.io/jodit)
20
20
  - [TypeScript Starter](https://codesandbox.io/s/ggc6km)
21
21
 
22
22
  ## Get Started
@@ -109,9 +109,9 @@ You can manually include additional plugins and languages as needed.
109
109
  ```html
110
110
  <link
111
111
  rel="stylesheet"
112
- href="https://cdnjs.cloudflare.com/ajax/libs/jodit/4.0.0-beta.86/es2021/jodit.min.css"
112
+ href="https://cdnjs.cloudflare.com/ajax/libs/jodit/4.0.0-beta.88/es2021/jodit.min.css"
113
113
  />
114
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jodit/4.0.0-beta.86/es2021/jodit.min.js"></script>
114
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jodit/4.0.0-beta.88/es2021/jodit.min.js"></script>
115
115
  ```
116
116
 
117
117
  #### unpkg
@@ -119,9 +119,9 @@ You can manually include additional plugins and languages as needed.
119
119
  ```html
120
120
  <link
121
121
  rel="stylesheet"
122
- href="https://unpkg.com/jodit@4.0.0-beta.86/es2021/jodit.min.css"
122
+ href="https://unpkg.com/jodit@4.0.0-beta.88/es2021/jodit.min.css"
123
123
  />
124
- <script src="https://unpkg.com/jodit@4.0.0-beta.86/es2021/jodit.min.js"></script>
124
+ <script src="https://unpkg.com/jodit@4.0.0-beta.88/es2021/jodit.min.js"></script>
125
125
  ```
126
126
 
127
127
  ### Usage
package/es2015/jodit.css CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
4
- * Version: v4.0.0-beta.86
4
+ * Version: v4.0.0-beta.88
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */