jodit 4.12.37 → 4.12.39
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.
- package/CHANGELOG.md +24 -0
- package/README.md +4 -4
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +4 -4
- package/es2015/jodit.js +69 -5
- package/es2015/jodit.min.js +5 -5
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.fat.min.js +4 -4
- package/es2018/jodit.min.js +5 -5
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +6 -6
- package/es2021/jodit.js +69 -5
- package/es2021/jodit.min.js +7 -7
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +6 -6
- package/es2021.en/jodit.js +69 -5
- package/es2021.en/jodit.min.js +6 -6
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +69 -5
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/config.d.ts +22 -0
- package/esm/config.js +14 -0
- package/esm/core/constants.js +1 -1
- package/esm/core/global.js +4 -0
- package/esm/core/helpers/utils/append-script.js +6 -0
- package/esm/core/helpers/utils/scroll-into-view.js +6 -2
- package/esm/plugins/fullsize/fullsize.js +11 -1
- package/esm/plugins/link/config.d.ts +8 -0
- package/esm/plugins/link/config.js +1 -0
- package/esm/plugins/link/link.js +30 -0
- package/esm/types/view.d.ts +6 -0
- package/package.json +1 -1
- package/types/config.d.ts +22 -0
- package/types/plugins/link/config.d.ts +8 -0
- package/types/types/view.d.ts +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,30 @@
|
|
|
9
9
|
> - :house: [Internal]
|
|
10
10
|
> - :nail_care: [Polish]
|
|
11
11
|
|
|
12
|
+
## 4.12.39
|
|
13
|
+
|
|
14
|
+
#### :bug: Bug Fix
|
|
15
|
+
|
|
16
|
+
- **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).
|
|
17
|
+
- **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).
|
|
18
|
+
|
|
19
|
+
#### :rocket: New Feature
|
|
20
|
+
|
|
21
|
+
- **Link dialog / `link.deriveUrlFromText`**: new opt-in option (default `false`). When the link dialog is opened for a new link with an empty URL field, the URL is pre-filled from the selected text when it looks like a URL or email — a bare domain gets `https://` (`example.com` → `https://example.com`), an email gets `mailto:`, an already-schemed URL is kept as is, and plain text is left untouched. Requested in [#1248](https://github.com/xdan/jodit/issues/1248) / [#1323](https://github.com/xdan/jodit/issues/1323).
|
|
22
|
+
- **CSP `nonce` support**: added a `nonce` option that is applied to every `<style>`, `<script>` and `<link>` element Jodit injects at runtime (plugin styles, CDN scripts for ACE/beautify, downloaded stylesheets). Setting it to the nonce from your `Content-Security-Policy` header lets the editor run under a strict `style-src`/`script-src` policy without `'unsafe-inline'`. Requested in [#1276](https://github.com/xdan/jodit/issues/1276).
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
Jodit.make('#editor', { nonce: 'r4nd0m' });
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
#### :memo: Documentation
|
|
29
|
+
|
|
30
|
+
- **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).
|
|
31
|
+
|
|
32
|
+
#### :house: Internal
|
|
33
|
+
|
|
34
|
+
- **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.
|
|
35
|
+
|
|
12
36
|
## 4.12.37
|
|
13
37
|
|
|
14
38
|
#### :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.
|
|
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.
|
|
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.
|
|
113
|
+
href="https://unpkg.com/jodit@4.12.37/es2021/jodit.min.css"
|
|
114
114
|
/>
|
|
115
|
-
<script src="https://unpkg.com/jodit@4.
|
|
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