jodit 4.19.14 → 4.20.0
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 +22 -0
- package/es2015/jodit.css +76 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +9 -9
- package/es2015/jodit.js +1447 -598
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +9 -9
- 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.css +1 -1
- package/es2018/jodit.fat.min.js +9 -9
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +9 -9
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +76 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +14 -14
- package/es2021/jodit.js +1428 -595
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +14 -14
- 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 +76 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +14 -14
- package/es2021.en/jodit.js +1402 -569
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +14 -14
- 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 +96 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +1684 -705
- package/es5/jodit.min.css +3 -3
- 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 +10 -3
- package/esm/core/constants.js +1 -1
- package/esm/core/helpers/utils/anchor.d.ts +22 -0
- package/esm/core/helpers/utils/anchor.js +29 -0
- package/esm/core/helpers/utils/index.d.ts +1 -0
- package/esm/core/helpers/utils/index.js +1 -0
- package/esm/core/ui/popup/popup.d.ts +5 -0
- package/esm/core/ui/popup/popup.js +5 -0
- package/esm/jodit.js +11 -14
- package/esm/langs/ar.d.ts +5 -0
- package/esm/langs/ar.js +5 -0
- package/esm/langs/az.d.ts +5 -0
- package/esm/langs/az.js +5 -0
- package/esm/langs/cs_cz.d.ts +5 -0
- package/esm/langs/cs_cz.js +6 -1
- package/esm/langs/de.d.ts +5 -0
- package/esm/langs/de.js +6 -0
- package/esm/langs/es.d.ts +5 -0
- package/esm/langs/es.js +6 -1
- package/esm/langs/fa.d.ts +5 -0
- package/esm/langs/fa.js +6 -1
- package/esm/langs/fi.d.ts +5 -0
- package/esm/langs/fi.js +5 -0
- package/esm/langs/fr.d.ts +5 -0
- package/esm/langs/fr.js +5 -0
- package/esm/langs/he.d.ts +5 -0
- package/esm/langs/he.js +6 -1
- package/esm/langs/hu.d.ts +5 -0
- package/esm/langs/hu.js +5 -0
- package/esm/langs/id.d.ts +5 -0
- package/esm/langs/id.js +6 -1
- package/esm/langs/it.d.ts +5 -0
- package/esm/langs/it.js +6 -1
- package/esm/langs/ja.d.ts +5 -0
- package/esm/langs/ja.js +6 -1
- package/esm/langs/ko.d.ts +5 -0
- package/esm/langs/ko.js +6 -1
- package/esm/langs/mn.d.ts +5 -0
- package/esm/langs/mn.js +6 -1
- package/esm/langs/nl.d.ts +5 -0
- package/esm/langs/nl.js +5 -0
- package/esm/langs/no.d.ts +5 -0
- package/esm/langs/no.js +5 -0
- package/esm/langs/pl.d.ts +5 -0
- package/esm/langs/pl.js +5 -0
- package/esm/langs/pt_br.d.ts +5 -0
- package/esm/langs/pt_br.js +6 -1
- package/esm/langs/ru.d.ts +5 -0
- package/esm/langs/ru.js +6 -1
- package/esm/langs/sk.d.ts +5 -0
- package/esm/langs/sk.js +5 -0
- package/esm/langs/sv.d.ts +5 -0
- package/esm/langs/sv.js +5 -0
- package/esm/langs/tr.d.ts +5 -0
- package/esm/langs/tr.js +6 -1
- package/esm/langs/ua.d.ts +5 -0
- package/esm/langs/ua.js +6 -1
- package/esm/langs/zh_cn.d.ts +5 -0
- package/esm/langs/zh_cn.js +6 -1
- package/esm/langs/zh_tw.d.ts +5 -0
- package/esm/langs/zh_tw.js +5 -0
- package/esm/modules/file-browser/file-browser.d.ts +3 -4
- package/esm/modules/file-browser/file-browser.js +12 -12
- package/esm/modules/toolbar/button/button.d.ts +7 -0
- package/esm/modules/toolbar/button/button.js +30 -4
- package/esm/modules/uploader/config.js +18 -18
- package/esm/modules/uploader/helpers/index.d.ts +1 -0
- package/esm/modules/uploader/helpers/index.js +1 -0
- package/esm/modules/uploader/helpers/normalize-uploader-data.d.ts +32 -0
- package/esm/modules/uploader/helpers/normalize-uploader-data.js +54 -0
- package/esm/modules/uploader/helpers/send-files.js +11 -6
- package/esm/modules/uploader/uploader.d.ts +4 -5
- package/esm/modules/uploader/uploader.js +12 -8
- package/esm/plugins/all.d.ts +1 -0
- package/esm/plugins/all.js +1 -0
- package/esm/plugins/anchor/anchor.d.ts +67 -0
- package/esm/plugins/anchor/anchor.js +302 -0
- package/esm/plugins/anchor/config.d.ts +6 -0
- package/esm/plugins/anchor/config.js +13 -0
- package/esm/plugins/file/file.d.ts +1 -1
- package/esm/plugins/file/file.js +6 -6
- package/esm/plugins/image/image.js +2 -2
- package/esm/plugins/image-caption/image-caption.js +1 -2
- package/esm/plugins/image-properties/utils/open-image-popup.js +7 -6
- package/esm/plugins/index.d.ts +1 -0
- package/esm/plugins/inline-popup/config/config.d.ts +8 -2
- package/esm/plugins/inline-popup/config/config.js +1 -0
- package/esm/plugins/inline-popup/config/items/cells.js +0 -10
- package/esm/plugins/inline-popup/config/items/img.js +1 -1
- package/esm/plugins/inline-popup/inline-popup.d.ts +9 -12
- package/esm/plugins/inline-popup/inline-popup.js +53 -77
- package/esm/plugins/link/link.js +150 -3
- package/esm/plugins/select/select.d.ts +31 -0
- package/esm/plugins/select/select.js +235 -2
- package/esm/plugins/select-cells/select-cells.d.ts +11 -0
- package/esm/plugins/select-cells/select-cells.js +48 -17
- package/esm/plugins/video/config.d.ts +1 -1
- package/esm/plugins/video/config.js +4 -3
- package/esm/plugins/video-properties/video-properties.js +7 -6
- package/esm/styles/icons/anchor.svg.js +1 -0
- package/esm/styles/icons/index.d.ts +1 -1
- package/esm/styles/icons/index.js +2 -1
- package/esm/types/file-browser.d.ts +8 -1
- package/esm/types/popup.d.ts +1 -0
- package/esm/types/uploader.d.ts +39 -1
- package/package.json +1 -1
- package/types/config.d.ts +10 -3
- package/types/core/helpers/utils/anchor.d.ts +22 -0
- package/types/core/helpers/utils/index.d.ts +1 -0
- package/types/core/ui/popup/popup.d.ts +5 -0
- package/types/langs/ar.d.ts +5 -0
- package/types/langs/az.d.ts +5 -0
- package/types/langs/cs_cz.d.ts +5 -0
- package/types/langs/de.d.ts +5 -0
- package/types/langs/es.d.ts +5 -0
- package/types/langs/fa.d.ts +5 -0
- package/types/langs/fi.d.ts +5 -0
- package/types/langs/fr.d.ts +5 -0
- package/types/langs/he.d.ts +5 -0
- package/types/langs/hu.d.ts +5 -0
- package/types/langs/id.d.ts +5 -0
- package/types/langs/it.d.ts +5 -0
- package/types/langs/ja.d.ts +5 -0
- package/types/langs/ko.d.ts +5 -0
- package/types/langs/mn.d.ts +5 -0
- package/types/langs/nl.d.ts +5 -0
- package/types/langs/no.d.ts +5 -0
- package/types/langs/pl.d.ts +5 -0
- package/types/langs/pt_br.d.ts +5 -0
- package/types/langs/ru.d.ts +5 -0
- package/types/langs/sk.d.ts +5 -0
- package/types/langs/sv.d.ts +5 -0
- package/types/langs/tr.d.ts +5 -0
- package/types/langs/ua.d.ts +5 -0
- package/types/langs/zh_cn.d.ts +5 -0
- package/types/langs/zh_tw.d.ts +5 -0
- package/types/modules/file-browser/file-browser.d.ts +3 -4
- package/types/modules/toolbar/button/button.d.ts +7 -0
- package/types/modules/uploader/helpers/index.d.ts +1 -0
- package/types/modules/uploader/helpers/normalize-uploader-data.d.ts +32 -0
- package/types/modules/uploader/uploader.d.ts +4 -5
- package/types/plugins/anchor/anchor.d.ts +67 -0
- package/types/plugins/anchor/config.d.ts +6 -0
- package/types/plugins/file/file.d.ts +1 -1
- package/types/plugins/index.d.ts +1 -0
- package/types/plugins/inline-popup/config/config.d.ts +8 -2
- package/types/plugins/inline-popup/inline-popup.d.ts +9 -12
- package/types/plugins/select/select.d.ts +31 -0
- package/types/plugins/select-cells/select-cells.d.ts +11 -0
- package/types/plugins/video/config.d.ts +1 -1
- package/types/styles/icons/index.d.ts +1 -1
- package/types/types/file-browser.d.ts +8 -1
- package/types/types/popup.d.ts +1 -0
- package/types/types/uploader.d.ts +39 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,28 @@
|
|
|
9
9
|
> - :house: [Internal]
|
|
10
10
|
> - :nail_care: [Polish]
|
|
11
11
|
|
|
12
|
+
## 4.20.0
|
|
13
|
+
|
|
14
|
+
#### :rocket: New Feature
|
|
15
|
+
|
|
16
|
+
- [#1715](https://github.com/xdan/jodit/issues/1715) Anchors: the new `anchor` plugin's Insert anchor button puts `<a id="name"></a>` at the caret, refusing a name with spaces or one already used. Each anchor shows as a marker in the editor only, and a click on it opens a form to rename the anchor, which updates the links to it, or to remove it. Older empty `<a name>` anchors count too and keep `name`. The link popup's URL field lists the document's anchors in a dropdown under "On this page", and picking one fills in its `#name`. Thanks [@brendon](https://github.com/brendon).
|
|
17
|
+
- The default toolbar gains the Insert anchor button, in the `insert` group, so every editor with the default `buttons` shows it. `removeButtons: ['anchor']` leaves it out.
|
|
18
|
+
- Empty `<a id>` and `<a name>` anchors already in a document now show a marker in the editor, and a click on one opens the anchor form. `disablePlugins: ['anchor']` leaves them as they were.
|
|
19
|
+
- [#1752](https://github.com/xdan/jodit/issues/1752) Upload and file browser handlers get `items`, one `{ file, isImage, name }` object per file. `uploader.process` and servers can answer with `items` instead of `files` and `isImages`. Thanks @brendon.
|
|
20
|
+
- [#1741](https://github.com/xdan/jodit/issues/1741) A button in an element's popup (cells, image, media, link, the selection toolbar) leaves that popup open beside its element and closes only the list it opened; the popup still closes on a click outside, on a key that moves the caret off the element and when a button removes the element. The new option `toolbarInlineKeepOpen` (default `true`) turns it off.
|
|
21
|
+
|
|
22
|
+
#### :boom: Breaking Change
|
|
23
|
+
|
|
24
|
+
- Inline popups no longer close after one of their buttons runs. Set `toolbarInlineKeepOpen: false` to get the old behaviour, where every button fired `closeAllPopups`.
|
|
25
|
+
|
|
26
|
+
#### :house: Internal
|
|
27
|
+
|
|
28
|
+
- [#1752](https://github.com/xdan/jodit/issues/1752) Deprecated: `files`, `isImages` and `fileNames` in the data upload and file browser handlers get. Use `items`. They will be removed in 5.0. Until then they win over `items` while `files` is set, so a handler that edits `items` and passes the data on to a default handler deletes `files` first. Thanks @brendon.
|
|
29
|
+
|
|
30
|
+
#### :bug: Bug Fix
|
|
31
|
+
|
|
32
|
+
- [#1768](https://github.com/xdan/jodit/issues/1768) A double click past the end of a line, or a drag from there to the start of the next, no longer selects only the line break (the caret goes to the end of the line and the selection toolbar does not open), and a drag that does not pass a video or iframe on its own line leaves it out; a selected video gets the selection tint over its own box.
|
|
33
|
+
|
|
12
34
|
## 4.19.14
|
|
13
35
|
|
|
14
36
|
#### :bug: Bug Fix
|
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.
|
|
4
|
+
* Version: v4.20.0
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -4280,6 +4280,81 @@ html.jodit_fullsize-box_true {
|
|
|
4280
4280
|
min-width: 700px;
|
|
4281
4281
|
}
|
|
4282
4282
|
|
|
4283
|
+
.jodit-link-anchors {
|
|
4284
|
+
max-width: 360px;
|
|
4285
|
+
max-height: min(260px, 40vh);
|
|
4286
|
+
box-sizing: border-box;
|
|
4287
|
+
padding-bottom: calc(var(--jd-padding-default) / 2);
|
|
4288
|
+
overflow-y: auto;
|
|
4289
|
+
}
|
|
4290
|
+
.jodit-link-anchors__toggle {
|
|
4291
|
+
display: flex;
|
|
4292
|
+
flex-shrink: 0;
|
|
4293
|
+
align-items: center;
|
|
4294
|
+
align-self: stretch;
|
|
4295
|
+
padding: 0 var(--jd-padding-default);
|
|
4296
|
+
border: 0;
|
|
4297
|
+
background: none;
|
|
4298
|
+
color: var(--jd-color-icon);
|
|
4299
|
+
cursor: pointer;
|
|
4300
|
+
}
|
|
4301
|
+
.jodit-link-anchors__toggle:hover,
|
|
4302
|
+
.jodit-link-anchors__toggle[aria-expanded='true'] {
|
|
4303
|
+
background-color: var(--jd-color-background-button-hover);
|
|
4304
|
+
}
|
|
4305
|
+
.jodit-link-anchors__toggle svg {
|
|
4306
|
+
width: 10px;
|
|
4307
|
+
height: 10px;
|
|
4308
|
+
}
|
|
4309
|
+
.jodit-link-anchors__heading {
|
|
4310
|
+
padding: var(--jd-padding-default) var(--jd-padding-default) calc(var(--jd-padding-default) / 4);
|
|
4311
|
+
color: var(--jd-color-label);
|
|
4312
|
+
font-size: var(--jd-font-size-small);
|
|
4313
|
+
line-height: 1;
|
|
4314
|
+
text-transform: uppercase;
|
|
4315
|
+
}
|
|
4316
|
+
.jodit-link-anchors__item {
|
|
4317
|
+
display: flex;
|
|
4318
|
+
width: 100%;
|
|
4319
|
+
align-items: center;
|
|
4320
|
+
padding: calc(var(--jd-padding-default) / 2) var(--jd-padding-default);
|
|
4321
|
+
border: 0;
|
|
4322
|
+
background: none;
|
|
4323
|
+
color: var(--jd-color-default);
|
|
4324
|
+
cursor: pointer;
|
|
4325
|
+
font: inherit;
|
|
4326
|
+
gap: var(--jd-padding-default);
|
|
4327
|
+
text-align: left;
|
|
4328
|
+
}
|
|
4329
|
+
.jodit-link-anchors__item:hover,
|
|
4330
|
+
.jodit-link-anchors__item:focus-visible {
|
|
4331
|
+
background-color: var(--jd-color-background-button-hover);
|
|
4332
|
+
}
|
|
4333
|
+
.jodit-link-anchors__item[aria-current='true'] {
|
|
4334
|
+
font-weight: bold;
|
|
4335
|
+
}
|
|
4336
|
+
.jodit-link-anchors__item svg {
|
|
4337
|
+
width: 14px;
|
|
4338
|
+
height: 14px;
|
|
4339
|
+
flex-shrink: 0;
|
|
4340
|
+
color: var(--jd-color-icon);
|
|
4341
|
+
}
|
|
4342
|
+
.jodit-link-anchors__text,
|
|
4343
|
+
.jodit-link-anchors__name {
|
|
4344
|
+
overflow: hidden;
|
|
4345
|
+
text-overflow: ellipsis;
|
|
4346
|
+
white-space: nowrap;
|
|
4347
|
+
}
|
|
4348
|
+
.jodit-link-anchors__text {
|
|
4349
|
+
flex: 1;
|
|
4350
|
+
}
|
|
4351
|
+
.jodit-link-anchors__name {
|
|
4352
|
+
max-width: 35%;
|
|
4353
|
+
flex-shrink: 0;
|
|
4354
|
+
color: var(--jd-color-placeholder);
|
|
4355
|
+
font-size: var(--jd-font-size-small);
|
|
4356
|
+
}
|
|
4357
|
+
|
|
4283
4358
|
/*!
|
|
4284
4359
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
4285
4360
|
* Released under MIT see LICENSE.txt in the project root for license information.
|