jodit 4.2.50 → 4.3.1
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 +27 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +238 -108
- package/es2015/jodit.min.js +2 -2
- 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.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +239 -108
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.css +1 -1
- package/es2018/plugins/debug/debug.js +1 -1
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.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 +2 -2
- package/es2021/jodit.js +237 -107
- package/es2021/jodit.min.js +2 -2
- 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 +2 -2
- package/es2021.en/jodit.js +237 -107
- package/es2021.en/jodit.min.js +2 -2
- 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/164.fat.min.js +1 -1
- package/es5/164.min.js +1 -1
- package/es5/5.fat.min.js +1 -1
- package/es5/5.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +241 -109
- 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/esm/config.d.ts +4 -0
- package/esm/config.js +4 -0
- package/esm/core/constants.js +1 -1
- package/esm/core/decorators/cache/cache.d.ts +100 -0
- package/esm/core/decorators/cache/cache.js +106 -0
- package/esm/core/global.d.ts +6 -1
- package/esm/core/global.js +15 -13
- package/esm/core/helpers/utils/selector.d.ts +5 -1
- package/esm/core/helpers/utils/selector.js +3 -0
- package/esm/core/traits/dlgs.js +3 -0
- package/esm/core/view/view.js +4 -6
- package/esm/jodit.js +5 -5
- package/esm/modules/dialog/dialog.d.ts +8 -8
- package/esm/modules/dialog/dialog.js +37 -30
- package/esm/modules/file-browser/file-browser.js +2 -2
- package/esm/plugins/clipboard/clipboard.js +2 -1
- package/esm/plugins/image-processor/image-processor.js +5 -4
- package/esm/plugins/search/search.js +2 -2
- package/esm/types/view.d.ts +1 -0
- package/package.json +1 -1
- package/types/config.d.ts +4 -0
- package/types/core/decorators/cache/cache.d.ts +100 -0
- package/types/core/global.d.ts +6 -1
- package/types/core/helpers/utils/selector.d.ts +5 -1
- package/types/modules/dialog/dialog.d.ts +8 -8
- package/types/types/view.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,33 @@
|
|
|
9
9
|
> - :house: [Internal]
|
|
10
10
|
> - :nail_care: [Polish]
|
|
11
11
|
|
|
12
|
+
## 4.3.1
|
|
13
|
+
|
|
14
|
+
#### :boom: Breaking Change
|
|
15
|
+
|
|
16
|
+
- Added the `popupRoot` option for all `IViewBased` classes (`Dialog`, `Jodit`, `FileBrowser`). Allows you to specify the parental element of dialogs and popup windows.
|
|
17
|
+
- If the option is not specified, then when creating a dialogue, there is a bypass of a tree, starting with the editor. If an element is found `dialog` or eny element with `position: fixed` or `position: absolute`, then it is used as a parent.
|
|
18
|
+
- Also, `shadowRoot` can be used as a `popupRoot`
|
|
19
|
+
|
|
20
|
+
Those. Parent search priorities:
|
|
21
|
+
|
|
22
|
+
1. `popupRoot` option
|
|
23
|
+
2. `shadowRoot` option
|
|
24
|
+
3. The closest element `dialog` or with style `position: fixed` or `position: absolute`
|
|
25
|
+
4. document.body
|
|
26
|
+
|
|
27
|
+
This is necessary in cases where Jodit is displayed inside the dialog windows with a focus interception.
|
|
28
|
+
For example, when inserting in [mui dialog] (https://mui.com/material-ui/react-dialog/)
|
|
29
|
+
|
|
30
|
+
If this is your situation, then in most cases you won't need to do anything, as Jodit will find the correct parent element on its own.
|
|
31
|
+
But if your code logic was configured specifically to insert into `document.body`, then you will need to explicitly specify `popupRoot: document.body`
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
const editor = Jodit.make('#editor', {
|
|
35
|
+
popupRoot: document.body
|
|
36
|
+
});
|
|
37
|
+
```
|
|
38
|
+
|
|
12
39
|
## 4.2.48
|
|
13
40
|
|
|
14
41
|
### :bug: Bug Fix
|
package/es2015/jodit.css
CHANGED