jodit 4.18.11 → 4.19.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 +28 -0
- package/es2015/jodit.css +10 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +18 -12
- package/es2015/jodit.js +2489 -305
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +18 -12
- 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 +18 -12
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +18 -12
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +10 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +26 -19
- package/es2021/jodit.js +2451 -302
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +26 -19
- 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 +10 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +29 -22
- package/es2021.en/jodit.js +2425 -276
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +29 -22
- 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 +11 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +2873 -365
- 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 +44 -1
- package/esm/config.js +2 -1
- package/esm/core/constants.js +1 -1
- package/esm/core/dom/dom.js +4 -2
- package/esm/core/event-emitter/event-emitter.js +1 -0
- package/esm/core/helpers/utils/align.d.ts +6 -1
- package/esm/core/helpers/utils/align.js +22 -12
- package/esm/core/helpers/utils/image-caption.d.ts +24 -0
- package/esm/core/helpers/utils/image-caption.js +43 -0
- package/esm/core/helpers/utils/index.d.ts +1 -0
- package/esm/core/helpers/utils/index.js +1 -0
- package/esm/core/selection/selection.d.ts +3 -0
- package/esm/core/selection/selection.js +20 -5
- package/esm/core/selection/style/api/list/toggle-ordered-list.d.ts +1 -1
- package/esm/core/selection/style/api/list/toggle-ordered-list.js +30 -4
- package/esm/core/selection/style/transactions.js +1 -1
- package/esm/core/ui/helpers/focus-form-field.d.ts +12 -0
- package/esm/core/ui/helpers/focus-form-field.js +21 -0
- package/esm/jodit.js +18 -2
- package/esm/langs/ar.d.ts +2 -0
- package/esm/langs/ar.js +2 -0
- package/esm/langs/az.d.ts +2 -0
- package/esm/langs/az.js +2 -0
- package/esm/langs/cs_cz.d.ts +2 -0
- package/esm/langs/cs_cz.js +2 -0
- package/esm/langs/de.d.ts +2 -0
- package/esm/langs/de.js +2 -0
- package/esm/langs/es.d.ts +2 -0
- package/esm/langs/es.js +2 -0
- package/esm/langs/fa.d.ts +2 -0
- package/esm/langs/fa.js +2 -0
- package/esm/langs/fi.d.ts +2 -0
- package/esm/langs/fi.js +2 -0
- package/esm/langs/fr.d.ts +2 -0
- package/esm/langs/fr.js +2 -0
- package/esm/langs/he.d.ts +2 -0
- package/esm/langs/he.js +2 -0
- package/esm/langs/hu.d.ts +2 -0
- package/esm/langs/hu.js +2 -0
- package/esm/langs/id.d.ts +2 -0
- package/esm/langs/id.js +2 -0
- package/esm/langs/it.d.ts +2 -0
- package/esm/langs/it.js +2 -0
- package/esm/langs/ja.d.ts +2 -0
- package/esm/langs/ja.js +2 -0
- package/esm/langs/ko.d.ts +2 -0
- package/esm/langs/ko.js +2 -0
- package/esm/langs/mn.d.ts +2 -0
- package/esm/langs/mn.js +2 -0
- package/esm/langs/nl.d.ts +2 -0
- package/esm/langs/nl.js +2 -0
- package/esm/langs/no.d.ts +2 -0
- package/esm/langs/no.js +2 -0
- package/esm/langs/pl.d.ts +2 -0
- package/esm/langs/pl.js +2 -0
- package/esm/langs/pt_br.d.ts +2 -0
- package/esm/langs/pt_br.js +2 -0
- package/esm/langs/ru.d.ts +2 -0
- package/esm/langs/ru.js +2 -0
- package/esm/langs/sk.d.ts +2 -0
- package/esm/langs/sk.js +2 -0
- package/esm/langs/sv.d.ts +2 -0
- package/esm/langs/sv.js +2 -0
- package/esm/langs/tr.d.ts +2 -0
- package/esm/langs/tr.js +2 -0
- package/esm/langs/ua.d.ts +2 -0
- package/esm/langs/ua.js +2 -0
- package/esm/langs/zh_cn.d.ts +2 -0
- package/esm/langs/zh_cn.js +2 -0
- package/esm/langs/zh_tw.d.ts +2 -0
- package/esm/langs/zh_tw.js +2 -0
- package/esm/modules/table/table.d.ts +27 -0
- package/esm/modules/table/table.js +110 -2
- package/esm/modules/toolbar/button/button.js +11 -3
- package/esm/modules/uploader/helpers/send-files.js +3 -1
- package/esm/modules/widget/tabs/tabs.js +2 -0
- package/esm/plugins/all.d.ts +1 -0
- package/esm/plugins/all.js +1 -0
- package/esm/plugins/backspace/backspace.js +17 -1
- package/esm/plugins/backspace/cases/check-remove-char.js +1 -11
- package/esm/plugins/backspace/helpers.d.ts +5 -0
- package/esm/plugins/backspace/helpers.js +11 -0
- package/esm/plugins/clean-html/clean-html.js +2 -2
- package/esm/plugins/clean-html/helpers/index.d.ts +1 -0
- package/esm/plugins/clean-html/helpers/index.js +1 -0
- package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-word.d.ts +16 -0
- package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-word.js +109 -0
- package/esm/plugins/drag-and-drop-element/drag-and-drop-element.js +4 -2
- package/esm/plugins/format-block/config.d.ts +13 -0
- package/esm/plugins/format-block/config.js +38 -1
- package/esm/plugins/format-block/content-fonts.d.ts +17 -0
- package/esm/plugins/format-block/content-fonts.js +156 -0
- package/esm/plugins/image-caption/config.d.ts +31 -0
- package/esm/plugins/image-caption/config.js +11 -0
- package/esm/plugins/image-caption/image-caption.d.ts +140 -0
- package/esm/plugins/image-caption/image-caption.js +799 -0
- package/esm/plugins/image-processor/image-processor.d.ts +2 -1
- package/esm/plugins/image-processor/image-processor.js +9 -4
- package/esm/plugins/image-properties/config.js +1 -0
- package/esm/plugins/image-properties/image-properties.js +19 -5
- package/esm/plugins/image-properties/interface.d.ts +6 -0
- package/esm/plugins/image-properties/readers/align.d.ts +1 -1
- package/esm/plugins/image-properties/readers/index.js +9 -3
- package/esm/plugins/image-properties/readers/margin.d.ts +1 -1
- package/esm/plugins/image-properties/readers/size.d.ts +5 -1
- package/esm/plugins/image-properties/readers/size.js +4 -5
- package/esm/plugins/image-properties/ui/ui-image-main-tab.d.ts +2 -0
- package/esm/plugins/image-properties/ui/ui-image-main-tab.js +20 -0
- package/esm/plugins/image-properties/writers/caption.d.ts +15 -0
- package/esm/plugins/image-properties/writers/caption.js +18 -0
- package/esm/plugins/image-properties/writers/index.js +15 -10
- package/esm/plugins/image-properties/writers/link.js +7 -2
- package/esm/plugins/image-properties/writers/margin.d.ts +1 -1
- package/esm/plugins/image-properties/writers/size.d.ts +5 -2
- package/esm/plugins/image-properties/writers/size.js +16 -2
- package/esm/plugins/indent/helpers.d.ts +9 -0
- package/esm/plugins/indent/helpers.js +23 -3
- package/esm/plugins/indent/indent.js +2 -20
- package/esm/plugins/index.d.ts +1 -0
- package/esm/plugins/inline-popup/config/config.js +4 -0
- package/esm/plugins/inline-popup/config/items/cells.js +29 -0
- package/esm/plugins/inline-popup/config/items/img.js +35 -5
- package/esm/plugins/inline-popup/icons/caption.svg.js +1 -0
- package/esm/plugins/inline-popup/icons/headerrow.svg.js +1 -0
- package/esm/plugins/inline-popup/inline-popup.js +3 -2
- package/esm/plugins/placeholder/placeholder.js +7 -1
- package/esm/plugins/resize-cells/resize-cells.d.ts +49 -0
- package/esm/plugins/resize-cells/resize-cells.js +247 -13
- package/esm/plugins/resizer/resizer.js +13 -2
- package/esm/plugins/select-cells/select-cells.d.ts +5 -0
- package/esm/plugins/select-cells/select-cells.js +29 -11
- package/esm/plugins/tab/cases/index.d.ts +1 -0
- package/esm/plugins/tab/cases/index.js +1 -0
- package/esm/plugins/tab/cases/on-tab-inside-li.js +3 -1
- package/esm/plugins/tab/cases/tab-spaces.d.ts +32 -0
- package/esm/plugins/tab/cases/tab-spaces.js +263 -0
- package/esm/plugins/tab/config.d.ts +10 -0
- package/esm/plugins/tab/config.js +2 -1
- package/esm/plugins/tab/tab.js +61 -6
- package/esm/types/types.d.ts +16 -0
- package/esm/types/uploader.d.ts +6 -0
- package/package.json +1 -1
- package/types/config.d.ts +44 -1
- package/types/core/helpers/utils/align.d.ts +6 -1
- package/types/core/helpers/utils/image-caption.d.ts +24 -0
- package/types/core/helpers/utils/index.d.ts +1 -0
- package/types/core/selection/selection.d.ts +3 -0
- package/types/core/selection/style/api/list/toggle-ordered-list.d.ts +1 -1
- package/types/core/ui/helpers/focus-form-field.d.ts +12 -0
- package/types/langs/ar.d.ts +2 -0
- package/types/langs/az.d.ts +2 -0
- package/types/langs/cs_cz.d.ts +2 -0
- package/types/langs/de.d.ts +2 -0
- package/types/langs/es.d.ts +2 -0
- package/types/langs/fa.d.ts +2 -0
- package/types/langs/fi.d.ts +2 -0
- package/types/langs/fr.d.ts +2 -0
- package/types/langs/he.d.ts +2 -0
- package/types/langs/hu.d.ts +2 -0
- package/types/langs/id.d.ts +2 -0
- package/types/langs/it.d.ts +2 -0
- package/types/langs/ja.d.ts +2 -0
- package/types/langs/ko.d.ts +2 -0
- package/types/langs/mn.d.ts +2 -0
- package/types/langs/nl.d.ts +2 -0
- package/types/langs/no.d.ts +2 -0
- package/types/langs/pl.d.ts +2 -0
- package/types/langs/pt_br.d.ts +2 -0
- package/types/langs/ru.d.ts +2 -0
- package/types/langs/sk.d.ts +2 -0
- package/types/langs/sv.d.ts +2 -0
- package/types/langs/tr.d.ts +2 -0
- package/types/langs/ua.d.ts +2 -0
- package/types/langs/zh_cn.d.ts +2 -0
- package/types/langs/zh_tw.d.ts +2 -0
- package/types/modules/table/table.d.ts +27 -0
- package/types/plugins/backspace/helpers.d.ts +5 -0
- package/types/plugins/clean-html/helpers/index.d.ts +1 -0
- package/types/plugins/clean-html/helpers/remove-format/remove-format-for-word.d.ts +16 -0
- package/types/plugins/format-block/config.d.ts +13 -0
- package/types/plugins/format-block/content-fonts.d.ts +17 -0
- package/types/plugins/image-caption/config.d.ts +31 -0
- package/types/plugins/image-caption/image-caption.d.ts +140 -0
- package/types/plugins/image-processor/image-processor.d.ts +2 -1
- package/types/plugins/image-properties/interface.d.ts +6 -0
- package/types/plugins/image-properties/readers/align.d.ts +1 -1
- package/types/plugins/image-properties/readers/margin.d.ts +1 -1
- package/types/plugins/image-properties/readers/size.d.ts +5 -1
- package/types/plugins/image-properties/ui/ui-image-main-tab.d.ts +2 -0
- package/types/plugins/image-properties/writers/caption.d.ts +15 -0
- package/types/plugins/image-properties/writers/margin.d.ts +1 -1
- package/types/plugins/image-properties/writers/size.d.ts +5 -2
- package/types/plugins/indent/helpers.d.ts +9 -0
- package/types/plugins/index.d.ts +1 -0
- package/types/plugins/resize-cells/resize-cells.d.ts +49 -0
- package/types/plugins/select-cells/select-cells.d.ts +5 -0
- package/types/plugins/tab/cases/index.d.ts +1 -0
- package/types/plugins/tab/cases/tab-spaces.d.ts +32 -0
- package/types/plugins/tab/config.d.ts +10 -0
- package/types/types/types.d.ts +16 -0
- package/types/types/uploader.d.ts +6 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module helpers/utils
|
|
8
|
+
*/
|
|
9
|
+
import type { IJodit, Nullable } from "../../../types/index";
|
|
10
|
+
/**
|
|
11
|
+
* The caption in `wrapper`, an element holding an image and its caption (see
|
|
12
|
+
* `imageCaption`)
|
|
13
|
+
*/
|
|
14
|
+
export declare function getImageCaption(jodit: IJodit, wrapper: Nullable<Node>): Nullable<HTMLElement>;
|
|
15
|
+
/**
|
|
16
|
+
* The image in `wrapper` when it is an element holding one image and its
|
|
17
|
+
* caption (see `imageCaption`)
|
|
18
|
+
*/
|
|
19
|
+
export declare function getCaptionedImage(jodit: IJodit, wrapper: Nullable<Node>): Nullable<HTMLImageElement>;
|
|
20
|
+
/**
|
|
21
|
+
* The element holding an image and its caption (see `imageCaption`) that is
|
|
22
|
+
* or holds `node`
|
|
23
|
+
*/
|
|
24
|
+
export declare function getCaptionWrapper(jodit: IJodit, node: Nullable<Node>): Nullable<HTMLElement>;
|
|
@@ -24,6 +24,7 @@ export * from "./extend";
|
|
|
24
24
|
export * from "./get";
|
|
25
25
|
export * from "./get-class-name";
|
|
26
26
|
export * from "./human-size-to-bytes";
|
|
27
|
+
export * from "./image-caption";
|
|
27
28
|
export * from "./is-unsafe-proto-key";
|
|
28
29
|
export * from "./mark-deprecated";
|
|
29
30
|
export * from "./media-wrapper";
|
|
@@ -253,6 +253,9 @@ export declare class Selection implements ISelect {
|
|
|
253
253
|
* there: the arrow keys then have nothing to move from and the selection
|
|
254
254
|
* cannot be escaped. Selecting the island itself keeps the range in editable
|
|
255
255
|
* content, so the caret can step over it. See #1184
|
|
256
|
+
*
|
|
257
|
+
* An editable element inside an island, as an image's caption, is editable
|
|
258
|
+
* content of its own, so the search stops there.
|
|
256
259
|
*/
|
|
257
260
|
private __closestNotEditable;
|
|
258
261
|
/**
|
|
@@ -8,4 +8,4 @@ import type { CommitMode, ICommitStyle, IJodit } from "../../../../../types/inde
|
|
|
8
8
|
* Replaces `ul->ol` or `ol->ul`, apply styles to the list, or remove a list item from it
|
|
9
9
|
* @private
|
|
10
10
|
*/
|
|
11
|
-
export declare function toggleOrderedList(commitStyle: ICommitStyle, li: HTMLElement, jodit: IJodit, mode: CommitMode): CommitMode;
|
|
11
|
+
export declare function toggleOrderedList(commitStyle: ICommitStyle, li: HTMLElement, jodit: IJodit, mode: CommitMode, collapsed?: boolean): CommitMode;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Focuses the first text field shown in a form inside `box`, so that typing
|
|
8
|
+
* fills it in rather than replacing the selected content, as in a dialog. A
|
|
9
|
+
* form round `box`, as the image properties dialog's round its tabs, doesn't
|
|
10
|
+
* count, and neither do fields outside a form, as the color picker's
|
|
11
|
+
*/
|
|
12
|
+
export declare function focusFormField(box: HTMLElement): void;
|
package/types/langs/ar.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ declare const _exports: {
|
|
|
60
60
|
Src: string;
|
|
61
61
|
Title: string;
|
|
62
62
|
Alternative: string;
|
|
63
|
+
Caption: string;
|
|
63
64
|
Link: string;
|
|
64
65
|
'Open link in new tab': string;
|
|
65
66
|
Image: string;
|
|
@@ -91,6 +92,7 @@ declare const _exports: {
|
|
|
91
92
|
'Insert column after': string;
|
|
92
93
|
'Insert row above': string;
|
|
93
94
|
'Insert row below': string;
|
|
95
|
+
'Header row': string;
|
|
94
96
|
'Delete table': string;
|
|
95
97
|
'Delete row': string;
|
|
96
98
|
'Delete column': string;
|
package/types/langs/az.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ declare const _exports: {
|
|
|
65
65
|
Src: string;
|
|
66
66
|
Title: string;
|
|
67
67
|
Alternative: string;
|
|
68
|
+
Caption: string;
|
|
68
69
|
Link: string;
|
|
69
70
|
'Open link in new tab': string;
|
|
70
71
|
Image: string;
|
|
@@ -103,6 +104,7 @@ declare const _exports: {
|
|
|
103
104
|
'Insert column after': string;
|
|
104
105
|
'Insert row above': string;
|
|
105
106
|
'Insert row below': string;
|
|
107
|
+
'Header row': string;
|
|
106
108
|
'Delete table': string;
|
|
107
109
|
'Delete row': string;
|
|
108
110
|
'Delete column': string;
|
package/types/langs/cs_cz.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ declare const _exports: {
|
|
|
61
61
|
Src: string;
|
|
62
62
|
Title: string;
|
|
63
63
|
Alternative: string;
|
|
64
|
+
Caption: string;
|
|
64
65
|
Link: string;
|
|
65
66
|
'Open link in new tab': string;
|
|
66
67
|
Image: string;
|
|
@@ -100,6 +101,7 @@ declare const _exports: {
|
|
|
100
101
|
'Insert column after': string;
|
|
101
102
|
'Insert row above': string;
|
|
102
103
|
'Insert row below': string;
|
|
104
|
+
'Header row': string;
|
|
103
105
|
'Delete table': string;
|
|
104
106
|
'Delete row': string;
|
|
105
107
|
'Delete column': string;
|
package/types/langs/de.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ declare const _exports: {
|
|
|
61
61
|
Src: string;
|
|
62
62
|
Title: string;
|
|
63
63
|
Alternative: string;
|
|
64
|
+
Caption: string;
|
|
64
65
|
Link: string;
|
|
65
66
|
'Open link in new tab': string;
|
|
66
67
|
Image: string;
|
|
@@ -99,6 +100,7 @@ declare const _exports: {
|
|
|
99
100
|
'Insert column after': string;
|
|
100
101
|
'Insert row above': string;
|
|
101
102
|
'Insert row below': string;
|
|
103
|
+
'Header row': string;
|
|
102
104
|
'Delete table': string;
|
|
103
105
|
'Delete row': string;
|
|
104
106
|
'Delete column': string;
|
package/types/langs/es.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ declare const _exports: {
|
|
|
61
61
|
Src: string;
|
|
62
62
|
Title: string;
|
|
63
63
|
Alternative: string;
|
|
64
|
+
Caption: string;
|
|
64
65
|
Filter: string;
|
|
65
66
|
Link: string;
|
|
66
67
|
'Open link in new tab': string;
|
|
@@ -100,6 +101,7 @@ declare const _exports: {
|
|
|
100
101
|
'Insert column after': string;
|
|
101
102
|
'Insert row above': string;
|
|
102
103
|
'Insert row below': string;
|
|
104
|
+
'Header row': string;
|
|
103
105
|
'Delete table': string;
|
|
104
106
|
'Delete row': string;
|
|
105
107
|
'Delete column': string;
|
package/types/langs/fa.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ declare const _exports: {
|
|
|
61
61
|
Src: string;
|
|
62
62
|
Title: string;
|
|
63
63
|
Alternative: string;
|
|
64
|
+
Caption: string;
|
|
64
65
|
Link: string;
|
|
65
66
|
'Open link in new tab': string;
|
|
66
67
|
Image: string;
|
|
@@ -99,6 +100,7 @@ declare const _exports: {
|
|
|
99
100
|
'Insert column after': string;
|
|
100
101
|
'Insert row above': string;
|
|
101
102
|
'Insert row below': string;
|
|
103
|
+
'Header row': string;
|
|
102
104
|
'Delete table': string;
|
|
103
105
|
'Delete row': string;
|
|
104
106
|
'Delete column': string;
|
package/types/langs/fi.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ declare const _exports: {
|
|
|
61
61
|
Src: string;
|
|
62
62
|
Title: string;
|
|
63
63
|
Alternative: string;
|
|
64
|
+
Caption: string;
|
|
64
65
|
Filter: string;
|
|
65
66
|
Link: string;
|
|
66
67
|
'Open link in new tab': string;
|
|
@@ -100,6 +101,7 @@ declare const _exports: {
|
|
|
100
101
|
'Insert column after': string;
|
|
101
102
|
'Insert row above': string;
|
|
102
103
|
'Insert row below': string;
|
|
104
|
+
'Header row': string;
|
|
103
105
|
'Delete table': string;
|
|
104
106
|
'Delete row': string;
|
|
105
107
|
'Delete column': string;
|
package/types/langs/fr.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ declare const _exports: {
|
|
|
60
60
|
Src: string;
|
|
61
61
|
Title: string;
|
|
62
62
|
Alternative: string;
|
|
63
|
+
Caption: string;
|
|
63
64
|
Filter: string;
|
|
64
65
|
Link: string;
|
|
65
66
|
'Open link in new tab': string;
|
|
@@ -101,6 +102,7 @@ declare const _exports: {
|
|
|
101
102
|
'Insert column after': string;
|
|
102
103
|
'Insert row above': string;
|
|
103
104
|
'Insert row below': string;
|
|
105
|
+
'Header row': string;
|
|
104
106
|
'Delete table': string;
|
|
105
107
|
'Delete row': string;
|
|
106
108
|
'Delete column': string;
|
package/types/langs/he.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ declare const _exports: {
|
|
|
61
61
|
Src: string;
|
|
62
62
|
Title: string;
|
|
63
63
|
Alternative: string;
|
|
64
|
+
Caption: string;
|
|
64
65
|
Link: string;
|
|
65
66
|
'Open link in new tab': string;
|
|
66
67
|
Image: string;
|
|
@@ -99,6 +100,7 @@ declare const _exports: {
|
|
|
99
100
|
'Insert column after': string;
|
|
100
101
|
'Insert row above': string;
|
|
101
102
|
'Insert row below': string;
|
|
103
|
+
'Header row': string;
|
|
102
104
|
'Delete table': string;
|
|
103
105
|
'Delete row': string;
|
|
104
106
|
'Delete column': string;
|
package/types/langs/hu.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ declare const _exports: {
|
|
|
63
63
|
Src: string;
|
|
64
64
|
Title: string;
|
|
65
65
|
Alternative: string;
|
|
66
|
+
Caption: string;
|
|
66
67
|
Link: string;
|
|
67
68
|
'Open link in new tab': string;
|
|
68
69
|
Image: string;
|
|
@@ -101,6 +102,7 @@ declare const _exports: {
|
|
|
101
102
|
'Insert column after': string;
|
|
102
103
|
'Insert row above': string;
|
|
103
104
|
'Insert row below': string;
|
|
105
|
+
'Header row': string;
|
|
104
106
|
'Delete table': string;
|
|
105
107
|
'Delete row': string;
|
|
106
108
|
'Delete column': string;
|
package/types/langs/id.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ declare const _exports: {
|
|
|
61
61
|
Src: string;
|
|
62
62
|
Title: string;
|
|
63
63
|
Alternative: string;
|
|
64
|
+
Caption: string;
|
|
64
65
|
Link: string;
|
|
65
66
|
'Open link in new tab': string;
|
|
66
67
|
Image: string;
|
|
@@ -100,6 +101,7 @@ declare const _exports: {
|
|
|
100
101
|
'Insert column after': string;
|
|
101
102
|
'Insert row above': string;
|
|
102
103
|
'Insert row below': string;
|
|
104
|
+
'Header row': string;
|
|
103
105
|
'Delete table': string;
|
|
104
106
|
'Delete row': string;
|
|
105
107
|
'Delete column': string;
|
package/types/langs/it.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ declare const _exports: {
|
|
|
61
61
|
Src: string;
|
|
62
62
|
Title: string;
|
|
63
63
|
Alternative: string;
|
|
64
|
+
Caption: string;
|
|
64
65
|
Link: string;
|
|
65
66
|
'Open link in new tab': string;
|
|
66
67
|
Image: string;
|
|
@@ -99,6 +100,7 @@ declare const _exports: {
|
|
|
99
100
|
'Insert column after': string;
|
|
100
101
|
'Insert row above': string;
|
|
101
102
|
'Insert row below': string;
|
|
103
|
+
'Header row': string;
|
|
102
104
|
'Delete table': string;
|
|
103
105
|
'Delete row': string;
|
|
104
106
|
'Delete column': string;
|
package/types/langs/ja.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ declare const _exports: {
|
|
|
61
61
|
Src: string;
|
|
62
62
|
Title: string;
|
|
63
63
|
Alternative: string;
|
|
64
|
+
Caption: string;
|
|
64
65
|
Link: string;
|
|
65
66
|
'Open link in new tab': string;
|
|
66
67
|
Image: string;
|
|
@@ -99,6 +100,7 @@ declare const _exports: {
|
|
|
99
100
|
'Insert column after': string;
|
|
100
101
|
'Insert row above': string;
|
|
101
102
|
'Insert row below': string;
|
|
103
|
+
'Header row': string;
|
|
102
104
|
'Delete table': string;
|
|
103
105
|
'Delete row': string;
|
|
104
106
|
'Delete column': string;
|
package/types/langs/ko.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ declare const _exports: {
|
|
|
60
60
|
Src: string;
|
|
61
61
|
Title: string;
|
|
62
62
|
Alternative: string;
|
|
63
|
+
Caption: string;
|
|
63
64
|
Link: string;
|
|
64
65
|
'Open link in new tab': string;
|
|
65
66
|
file: string;
|
|
@@ -98,6 +99,7 @@ declare const _exports: {
|
|
|
98
99
|
'Insert column after': string;
|
|
99
100
|
'Insert row above': string;
|
|
100
101
|
'Insert row below': string;
|
|
102
|
+
'Header row': string;
|
|
101
103
|
'Delete table': string;
|
|
102
104
|
'Delete row': string;
|
|
103
105
|
'Delete column': string;
|
package/types/langs/mn.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ declare const _exports: {
|
|
|
61
61
|
Src: string;
|
|
62
62
|
Title: string;
|
|
63
63
|
Alternative: string;
|
|
64
|
+
Caption: string;
|
|
64
65
|
Link: string;
|
|
65
66
|
'Open link in new tab': string;
|
|
66
67
|
Image: string;
|
|
@@ -99,6 +100,7 @@ declare const _exports: {
|
|
|
99
100
|
'Insert column after': string;
|
|
100
101
|
'Insert row above': string;
|
|
101
102
|
'Insert row below': string;
|
|
103
|
+
'Header row': string;
|
|
102
104
|
'Delete table': string;
|
|
103
105
|
'Delete row': string;
|
|
104
106
|
'Delete column': string;
|
package/types/langs/nl.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ declare const _exports: {
|
|
|
62
62
|
Src: string;
|
|
63
63
|
Title: string;
|
|
64
64
|
Alternative: string;
|
|
65
|
+
Caption: string;
|
|
65
66
|
Link: string;
|
|
66
67
|
'Open link in new tab': string;
|
|
67
68
|
Image: string;
|
|
@@ -100,6 +101,7 @@ declare const _exports: {
|
|
|
100
101
|
'Insert column after': string;
|
|
101
102
|
'Insert row above': string;
|
|
102
103
|
'Insert row below': string;
|
|
104
|
+
'Header row': string;
|
|
103
105
|
'Delete table': string;
|
|
104
106
|
'Delete row': string;
|
|
105
107
|
'Delete column': string;
|
package/types/langs/no.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ declare const _exports: {
|
|
|
60
60
|
Src: string;
|
|
61
61
|
Title: string;
|
|
62
62
|
Alternative: string;
|
|
63
|
+
Caption: string;
|
|
63
64
|
Filter: string;
|
|
64
65
|
Link: string;
|
|
65
66
|
'Open link in new tab': string;
|
|
@@ -101,6 +102,7 @@ declare const _exports: {
|
|
|
101
102
|
'Insert column after': string;
|
|
102
103
|
'Insert row above': string;
|
|
103
104
|
'Insert row below': string;
|
|
105
|
+
'Header row': string;
|
|
104
106
|
'Delete table': string;
|
|
105
107
|
'Delete row': string;
|
|
106
108
|
'Delete column': string;
|
package/types/langs/pl.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ declare const _exports: {
|
|
|
61
61
|
Src: string;
|
|
62
62
|
Title: string;
|
|
63
63
|
Alternative: string;
|
|
64
|
+
Caption: string;
|
|
64
65
|
Link: string;
|
|
65
66
|
'Open link in new tab': string;
|
|
66
67
|
Image: string;
|
|
@@ -99,6 +100,7 @@ declare const _exports: {
|
|
|
99
100
|
'Insert column after': string;
|
|
100
101
|
'Insert row above': string;
|
|
101
102
|
'Insert row below': string;
|
|
103
|
+
'Header row': string;
|
|
102
104
|
'Delete table': string;
|
|
103
105
|
'Delete row': string;
|
|
104
106
|
'Delete column': string;
|
package/types/langs/pt_br.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ declare const _exports: {
|
|
|
61
61
|
Src: string;
|
|
62
62
|
Title: string;
|
|
63
63
|
Alternative: string;
|
|
64
|
+
Caption: string;
|
|
64
65
|
Link: string;
|
|
65
66
|
'Open link in new tab': string;
|
|
66
67
|
Image: string;
|
|
@@ -99,6 +100,7 @@ declare const _exports: {
|
|
|
99
100
|
'Insert column after': string;
|
|
100
101
|
'Insert row above': string;
|
|
101
102
|
'Insert row below': string;
|
|
103
|
+
'Header row': string;
|
|
102
104
|
'Delete table': string;
|
|
103
105
|
'Delete row': string;
|
|
104
106
|
'Delete column': string;
|
package/types/langs/ru.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ declare const _exports: {
|
|
|
60
60
|
Src: string;
|
|
61
61
|
Title: string;
|
|
62
62
|
Alternative: string;
|
|
63
|
+
Caption: string;
|
|
63
64
|
Link: string;
|
|
64
65
|
'Open link in new tab': string;
|
|
65
66
|
file: string;
|
|
@@ -98,6 +99,7 @@ declare const _exports: {
|
|
|
98
99
|
'Insert column after': string;
|
|
99
100
|
'Insert row above': string;
|
|
100
101
|
'Insert row below': string;
|
|
102
|
+
'Header row': string;
|
|
101
103
|
'Delete table': string;
|
|
102
104
|
'Delete row': string;
|
|
103
105
|
'Delete column': string;
|
package/types/langs/sk.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ declare const _exports: {
|
|
|
61
61
|
Src: string;
|
|
62
62
|
Title: string;
|
|
63
63
|
Alternative: string;
|
|
64
|
+
Caption: string;
|
|
64
65
|
Link: string;
|
|
65
66
|
'Open link in new tab': string;
|
|
66
67
|
Image: string;
|
|
@@ -99,6 +100,7 @@ declare const _exports: {
|
|
|
99
100
|
'Insert column after': string;
|
|
100
101
|
'Insert row above': string;
|
|
101
102
|
'Insert row below': string;
|
|
103
|
+
'Header row': string;
|
|
102
104
|
'Delete table': string;
|
|
103
105
|
'Delete row': string;
|
|
104
106
|
'Delete column': string;
|
package/types/langs/sv.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ declare const _exports: {
|
|
|
60
60
|
Src: string;
|
|
61
61
|
Title: string;
|
|
62
62
|
Alternative: string;
|
|
63
|
+
Caption: string;
|
|
63
64
|
Filter: string;
|
|
64
65
|
Link: string;
|
|
65
66
|
'Open link in new tab': string;
|
|
@@ -101,6 +102,7 @@ declare const _exports: {
|
|
|
101
102
|
'Insert column after': string;
|
|
102
103
|
'Insert row above': string;
|
|
103
104
|
'Insert row below': string;
|
|
105
|
+
'Header row': string;
|
|
104
106
|
'Delete table': string;
|
|
105
107
|
'Delete row': string;
|
|
106
108
|
'Delete column': string;
|
package/types/langs/tr.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ declare const _exports: {
|
|
|
61
61
|
Src: string;
|
|
62
62
|
Title: string;
|
|
63
63
|
Alternative: string;
|
|
64
|
+
Caption: string;
|
|
64
65
|
Link: string;
|
|
65
66
|
'Open link in new tab': string;
|
|
66
67
|
Image: string;
|
|
@@ -99,6 +100,7 @@ declare const _exports: {
|
|
|
99
100
|
'Insert column after': string;
|
|
100
101
|
'Insert row above': string;
|
|
101
102
|
'Insert row below': string;
|
|
103
|
+
'Header row': string;
|
|
102
104
|
'Delete table': string;
|
|
103
105
|
'Delete row': string;
|
|
104
106
|
'Delete column': string;
|
package/types/langs/ua.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ declare const _exports: {
|
|
|
60
60
|
Src: string;
|
|
61
61
|
Title: string;
|
|
62
62
|
Alternative: string;
|
|
63
|
+
Caption: string;
|
|
63
64
|
Link: string;
|
|
64
65
|
'Open link in new tab': string;
|
|
65
66
|
file: string;
|
|
@@ -98,6 +99,7 @@ declare const _exports: {
|
|
|
98
99
|
'Insert column after': string;
|
|
99
100
|
'Insert row above': string;
|
|
100
101
|
'Insert row below': string;
|
|
102
|
+
'Header row': string;
|
|
101
103
|
'Delete table': string;
|
|
102
104
|
'Delete row': string;
|
|
103
105
|
'Delete column': string;
|
package/types/langs/zh_cn.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ declare const _exports: {
|
|
|
62
62
|
Src: string;
|
|
63
63
|
Title: string;
|
|
64
64
|
Alternative: string;
|
|
65
|
+
Caption: string;
|
|
65
66
|
Link: string;
|
|
66
67
|
'Open link in new tab': string;
|
|
67
68
|
Image: string;
|
|
@@ -100,6 +101,7 @@ declare const _exports: {
|
|
|
100
101
|
'Insert column after': string;
|
|
101
102
|
'Insert row above': string;
|
|
102
103
|
'Insert row below': string;
|
|
104
|
+
'Header row': string;
|
|
103
105
|
'Delete table': string;
|
|
104
106
|
'Delete row': string;
|
|
105
107
|
'Delete column': string;
|
package/types/langs/zh_tw.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ declare const _exports: {
|
|
|
61
61
|
Src: string;
|
|
62
62
|
Title: string;
|
|
63
63
|
Alternative: string;
|
|
64
|
+
Caption: string;
|
|
64
65
|
Link: string;
|
|
65
66
|
'Open link in new tab': string;
|
|
66
67
|
Image: string;
|
|
@@ -99,6 +100,7 @@ declare const _exports: {
|
|
|
99
100
|
'Insert column after': string;
|
|
100
101
|
'Insert row above': string;
|
|
101
102
|
'Insert row below': string;
|
|
103
|
+
'Header row': string;
|
|
102
104
|
'Delete table': string;
|
|
103
105
|
'Delete row': string;
|
|
104
106
|
'Delete column': string;
|
|
@@ -54,6 +54,33 @@ export declare class Table extends ViewComponent<IJodit> {
|
|
|
54
54
|
*/
|
|
55
55
|
formalCoordinate(table: HTMLTableElement, cell: HTMLTableCellElement, max?: boolean): number[];
|
|
56
56
|
private static __appendRow;
|
|
57
|
+
/**
|
|
58
|
+
* The table's first `<tbody>`, made after `head` when there's none
|
|
59
|
+
*/
|
|
60
|
+
private static __bodyOf;
|
|
61
|
+
/**
|
|
62
|
+
* Makes the row's cells `<td>`, or `<th>` with a column scope unless they
|
|
63
|
+
* have one, keeping their content and attributes. The cells it replaces
|
|
64
|
+
* go in `replaced`, with their replacements
|
|
65
|
+
*/
|
|
66
|
+
private static __setCellsTag;
|
|
67
|
+
/**
|
|
68
|
+
* The table has a header row: a `<thead>` with a row in it
|
|
69
|
+
*/
|
|
70
|
+
hasHeaderRow(table: HTMLTableElement): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Header rows can always go back into the body. The first row can become
|
|
73
|
+
* one unless a cell in it spans into the next, as a span can't cross from
|
|
74
|
+
* the `<thead>` into the `<tbody>`
|
|
75
|
+
*/
|
|
76
|
+
canToggleHeaderRow(table: HTMLTableElement): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Moves the first row into a `<thead>`, its cells becoming
|
|
79
|
+
* `<th scope="col">`, or the header rows back to the start of the
|
|
80
|
+
* `<tbody>` as `<td>`. Their content, attributes and spans stay. Returns
|
|
81
|
+
* the cells it replaced, with their replacements
|
|
82
|
+
*/
|
|
83
|
+
toggleHeaderRow(table: HTMLTableElement): Map<HTMLTableCellElement, HTMLTableCellElement>;
|
|
57
84
|
/**
|
|
58
85
|
* Inserts a new line after row what contains the selected cell
|
|
59
86
|
*
|
|
@@ -17,3 +17,8 @@ export declare function findMostNestedNeighbor(node: Node, right: boolean, root:
|
|
|
17
17
|
* @private
|
|
18
18
|
*/
|
|
19
19
|
export declare function getMoveFilter(jodit: IJodit): (node: Node) => boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Helper add BR element inside empty block element
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
24
|
+
export declare function addBRInsideEmptyBlock(jodit: IJodit, node: Node): void;
|
|
@@ -10,5 +10,6 @@ export * from "./get-hash";
|
|
|
10
10
|
export * from "./is-allowed-media-embed";
|
|
11
11
|
export * from "./remove-format/remove-format-for-collapsed-selection";
|
|
12
12
|
export * from "./remove-format/remove-format-for-selection";
|
|
13
|
+
export * from "./remove-format/remove-format-for-word";
|
|
13
14
|
export * from "./remove-placeholder-br";
|
|
14
15
|
export * from "./visitor/visit-node-walker";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module plugins/clean-html
|
|
8
|
+
*/
|
|
9
|
+
import type { IJodit } from "../../../../types/index";
|
|
10
|
+
/**
|
|
11
|
+
* With just a caret, Word clears the formatting of the word the caret is
|
|
12
|
+
* inside, and does nothing at a word's start or end. This selects the word,
|
|
13
|
+
* clears it as a selection, and puts the caret back where it was.
|
|
14
|
+
* @private
|
|
15
|
+
*/
|
|
16
|
+
export declare function removeFormatForWord(jodit: IJodit): void;
|
|
@@ -3,4 +3,17 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
+
declare module 'jodit/config' {
|
|
7
|
+
interface Config {
|
|
8
|
+
formatBlock: {
|
|
9
|
+
/**
|
|
10
|
+
* The CSS properties each preview in the Paragraph list copies from
|
|
11
|
+
* how the content shows its tag, so the list looks like the content.
|
|
12
|
+
* Lengths become `em`, and size and line height stay with the list.
|
|
13
|
+
* An empty list, the default, keeps the toolbar's styles.
|
|
14
|
+
*/
|
|
15
|
+
previewProperties: string[];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
6
19
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module plugins/format-block
|
|
8
|
+
*/
|
|
9
|
+
import type { IJodit } from "../../types/index";
|
|
10
|
+
/**
|
|
11
|
+
* In iframe mode the content's web fonts load only in the iframe, but the
|
|
12
|
+
* Paragraph list is in the page, so its previews would fall back to the
|
|
13
|
+
* page's fonts. This adds the content's web fonts to the page under names
|
|
14
|
+
* only this editor uses, so nothing else on the page can pick them up, and
|
|
15
|
+
* puts those names first in a preview's `font-family`
|
|
16
|
+
*/
|
|
17
|
+
export declare function withContentFonts(editor: IJodit, fontFamily: string): string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module plugins/image-caption
|
|
8
|
+
*/
|
|
9
|
+
import type { ImageCaptionMarkup } from "../../types/index";
|
|
10
|
+
declare module 'jodit/config' {
|
|
11
|
+
interface Config {
|
|
12
|
+
/**
|
|
13
|
+
* The elements a captioned image is kept in, read from the content and
|
|
14
|
+
* written by the Caption button in the image popup and the Caption
|
|
15
|
+
* checkbox in the image properties dialog. The default is a `<figure>`
|
|
16
|
+
* holding the image, or its link, and a `<figcaption>`. Content from
|
|
17
|
+
* another editor can be captioned in its own way, as Froala's is:
|
|
18
|
+
*
|
|
19
|
+
* ```javascript
|
|
20
|
+
* Jodit.make('#editor', {
|
|
21
|
+
* imageCaption: {
|
|
22
|
+
* wrapper: { tag: 'span', className: 'fr-img-caption' },
|
|
23
|
+
* inner: { tag: 'span', className: 'fr-img-wrap' },
|
|
24
|
+
* caption: { tag: 'span', className: 'fr-inner' }
|
|
25
|
+
* }
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
imageCaption: ImageCaptionMarkup;
|
|
30
|
+
}
|
|
31
|
+
}
|