jodit 4.12.38 → 4.12.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 (65) hide show
  1. package/CHANGELOG.md +20 -1
  2. package/README.md +4 -4
  3. package/es2015/jodit.css +13 -1
  4. package/es2015/jodit.fat.min.css +1 -1
  5. package/es2015/jodit.fat.min.js +4 -4
  6. package/es2015/jodit.js +26 -9
  7. package/es2015/jodit.min.css +1 -1
  8. package/es2015/jodit.min.js +4 -4
  9. package/es2015/plugins/debug/debug.css +1 -1
  10. package/es2015/plugins/debug/debug.js +1 -1
  11. package/es2015/plugins/debug/debug.min.js +1 -1
  12. package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
  13. package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
  14. package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
  15. package/es2018/jodit.fat.min.css +1 -1
  16. package/es2018/jodit.fat.min.js +4 -4
  17. package/es2018/jodit.min.css +1 -1
  18. package/es2018/jodit.min.js +4 -4
  19. package/es2018/plugins/debug/debug.min.js +1 -1
  20. package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
  21. package/es2021/jodit.css +13 -1
  22. package/es2021/jodit.fat.min.css +1 -1
  23. package/es2021/jodit.fat.min.js +5 -5
  24. package/es2021/jodit.js +26 -9
  25. package/es2021/jodit.min.css +1 -1
  26. package/es2021/jodit.min.js +5 -5
  27. package/es2021/plugins/debug/debug.css +1 -1
  28. package/es2021/plugins/debug/debug.js +1 -1
  29. package/es2021/plugins/debug/debug.min.js +1 -1
  30. package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
  31. package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
  32. package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
  33. package/es2021.en/jodit.css +13 -1
  34. package/es2021.en/jodit.fat.min.css +1 -1
  35. package/es2021.en/jodit.fat.min.js +5 -5
  36. package/es2021.en/jodit.js +26 -9
  37. package/es2021.en/jodit.min.css +1 -1
  38. package/es2021.en/jodit.min.js +5 -5
  39. package/es2021.en/plugins/debug/debug.css +1 -1
  40. package/es2021.en/plugins/debug/debug.js +1 -1
  41. package/es2021.en/plugins/debug/debug.min.js +1 -1
  42. package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
  43. package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
  44. package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
  45. package/es5/jodit.css +18 -2
  46. package/es5/jodit.fat.min.css +1 -1
  47. package/es5/jodit.fat.min.js +2 -2
  48. package/es5/jodit.js +26 -10
  49. package/es5/jodit.min.css +3 -3
  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/es5/polyfills.fat.min.js +1 -1
  58. package/es5/polyfills.js +1 -1
  59. package/es5/polyfills.min.js +1 -1
  60. package/esm/core/constants.js +1 -1
  61. package/esm/core/helpers/utils/scroll-into-view.js +6 -2
  62. package/esm/modules/widget/file-selector/file-selector.js +7 -1
  63. package/esm/modules/widget/tabs/tabs.js +0 -3
  64. package/esm/plugins/fullsize/fullsize.js +11 -1
  65. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -9,7 +9,18 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
- ## 4.12.38
12
+ ## 4.12.40
13
+
14
+ #### :nail_care: Polish
15
+
16
+ - **Insert image / file popup**: the tabs of the insert-image / insert-file popup now size to their labels, so long localized captions — e.g. the German "Datei hochladen" / "Durchsuchen" — are no longer clipped and the popup widens to fit. Previously each tab was forced to an equal column width, which cut off longer translations. The change is scoped to a new `jodit-file-selector` class, so other tab popups (link, video …) keep their fixed equal-column layout.
17
+
18
+ ## 4.12.39
19
+
20
+ #### :bug: Bug Fix
21
+
22
+ - **Fullsize / global fullscreen**: exiting fullsize scrolled the whole page back to the top. Entering global fullsize puts `<html>` into `position: fixed`, which makes the browser reset the page scroll to `0`; that position was never restored on exit. The scroll offset is now saved when entering fullsize and restored with `window.scrollTo()` when leaving it. Fixes [#1255](https://github.com/xdan/jodit/issues/1255).
23
+ - **Scroll into view / Search**: `inView` (used by `scrollIntoViewIfNeeded`) only checked that an element wasn't below the viewport bottom, not that it wasn't above the top. An element scrolled **above** the visible area was therefore reported as visible, so navigating to it never scrolled — most visibly, cycling through search results and wrapping around to a match near the top of the page did not scroll up to it. `inView` now also requires the element's bottom to be at or below the viewport top. Fixes [#1279](https://github.com/xdan/jodit/issues/1279).
13
24
 
14
25
  #### :rocket: New Feature
15
26
 
@@ -20,6 +31,14 @@
20
31
  Jodit.make('#editor', { nonce: 'r4nd0m' });
21
32
  ```
22
33
 
34
+ #### :memo: Documentation
35
+
36
+ - **Getting started / CDN**: bumped the pinned Jodit version in the cdnjs/unpkg snippets in `README.md` and `docs/getting-started.md` from the stale `4.7.6` to `4.12.37`. Refs [#1208](https://github.com/xdan/jodit/issues/1208).
37
+
38
+ #### :house: Internal
39
+
40
+ - **Enter tests**: added a regression test asserting that pressing Enter with the caret at the bottom of a scrollable editing area scrolls to follow the cursor (and does not scroll when the caret line is already visible). Covers the scenario from [#1300](https://github.com/xdan/jodit/issues/1300), which works on the current version.
41
+
23
42
  ## 4.12.37
24
43
 
25
44
  #### :bug: Bug Fix
package/README.md CHANGED
@@ -100,9 +100,9 @@ You can manually include additional plugins and languages as needed.
100
100
  ```html
101
101
  <link
102
102
  rel="stylesheet"
103
- href="https://cdnjs.cloudflare.com/ajax/libs/jodit/4.7.6/es2021/jodit.min.css"
103
+ href="https://cdnjs.cloudflare.com/ajax/libs/jodit/4.12.37/es2021/jodit.min.css"
104
104
  />
105
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jodit/4.7.6/es2021/jodit.min.js"></script>
105
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jodit/4.12.37/es2021/jodit.min.js"></script>
106
106
  ```
107
107
 
108
108
  #### unpkg
@@ -110,9 +110,9 @@ You can manually include additional plugins and languages as needed.
110
110
  ```html
111
111
  <link
112
112
  rel="stylesheet"
113
- href="https://unpkg.com/jodit@4.7.6/es2021/jodit.min.css"
113
+ href="https://unpkg.com/jodit@4.12.37/es2021/jodit.min.css"
114
114
  />
115
- <script src="https://unpkg.com/jodit@4.7.6/es2021/jodit.min.js"></script>
115
+ <script src="https://unpkg.com/jodit@4.12.37/es2021/jodit.min.js"></script>
116
116
  ```
117
117
 
118
118
  ### Usage
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.12.38
4
+ * Version: v4.12.41
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -3945,6 +3945,18 @@ a + .jodit-file-browser-tree__source-title {
3945
3945
  min-width: 220px;
3946
3946
  min-height: 100px;
3947
3947
  }
3948
+ /*
3949
+ * Insert-image / insert-file popup (see FileSelectorWidget): size the tab
3950
+ * buttons to their labels so long localized captions — e.g. the German
3951
+ * "Datei hochladen" / "Durchsuchen" — are not clipped and the popup widens to
3952
+ * fit. Scoped to `.jodit-file-selector`, so other tab popups (link, video …)
3953
+ * keep their fixed equal-column layout.
3954
+ */
3955
+ .jodit-file-selector .jodit-tabs__button {
3956
+ flex: none;
3957
+ width: max-content;
3958
+ max-width: none;
3959
+ }
3948
3960
  .jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons,
3949
3961
  .jodit_theme_dark .jodit-tabs .jodit-tabs__buttons {
3950
3962
  background-color: var(--jd-dark-background-color);