jodit 4.18.2 → 4.18.4
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 +41 -0
- package/es2015/jodit.css +66 -6
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +36 -11
- package/es2015/jodit.js +1435 -327
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +41 -16
- 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 +36 -11
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +36 -11
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +66 -6
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +45 -20
- package/es2021/jodit.js +1365 -271
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +45 -20
- 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 +66 -6
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +51 -26
- package/es2021.en/jodit.js +1339 -245
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +51 -26
- 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 +82 -7
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +1629 -354
- 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 +29 -28
- package/esm/config.js +19 -21
- package/esm/core/constants.js +1 -1
- package/esm/core/helpers/utils/align.d.ts +1 -1
- package/esm/core/helpers/utils/align.js +2 -3
- package/esm/core/helpers/utils/index.d.ts +1 -0
- package/esm/core/helpers/utils/index.js +1 -0
- package/esm/core/helpers/utils/prepare-media.d.ts +19 -0
- package/esm/core/helpers/utils/prepare-media.js +31 -0
- package/esm/core/selection/style/api/wrap-unwrapped-text.js +3 -2
- package/esm/jodit.js +14 -4
- package/esm/langs/ar.d.ts +7 -0
- package/esm/langs/ar.js +8 -1
- package/esm/langs/az.d.ts +7 -0
- package/esm/langs/az.js +8 -1
- package/esm/langs/cs_cz.d.ts +7 -0
- package/esm/langs/cs_cz.js +9 -1
- package/esm/langs/de.d.ts +7 -0
- package/esm/langs/de.js +8 -1
- package/esm/langs/es.d.ts +7 -0
- package/esm/langs/es.js +8 -1
- package/esm/langs/fa.d.ts +7 -0
- package/esm/langs/fa.js +8 -1
- package/esm/langs/fi.d.ts +7 -0
- package/esm/langs/fi.js +8 -1
- package/esm/langs/fr.d.ts +7 -0
- package/esm/langs/fr.js +8 -1
- package/esm/langs/he.d.ts +7 -0
- package/esm/langs/he.js +8 -1
- package/esm/langs/hu.d.ts +7 -0
- package/esm/langs/hu.js +8 -1
- package/esm/langs/id.d.ts +7 -0
- package/esm/langs/id.js +8 -1
- package/esm/langs/it.d.ts +7 -0
- package/esm/langs/it.js +8 -1
- package/esm/langs/ja.d.ts +7 -0
- package/esm/langs/ja.js +8 -1
- package/esm/langs/ko.d.ts +7 -0
- package/esm/langs/ko.js +8 -1
- package/esm/langs/mn.d.ts +7 -0
- package/esm/langs/mn.js +8 -1
- package/esm/langs/nl.d.ts +7 -0
- package/esm/langs/nl.js +8 -1
- package/esm/langs/no.d.ts +7 -0
- package/esm/langs/no.js +8 -1
- package/esm/langs/pl.d.ts +7 -0
- package/esm/langs/pl.js +8 -1
- package/esm/langs/pt_br.d.ts +7 -0
- package/esm/langs/pt_br.js +8 -1
- package/esm/langs/ru.d.ts +7 -0
- package/esm/langs/ru.js +8 -1
- package/esm/langs/sk.d.ts +7 -0
- package/esm/langs/sk.js +8 -1
- package/esm/langs/sv.d.ts +7 -0
- package/esm/langs/sv.js +8 -1
- package/esm/langs/tr.d.ts +7 -0
- package/esm/langs/tr.js +8 -1
- package/esm/langs/ua.d.ts +7 -0
- package/esm/langs/ua.js +8 -1
- package/esm/langs/zh_cn.d.ts +7 -0
- package/esm/langs/zh_cn.js +8 -1
- package/esm/langs/zh_tw.d.ts +7 -0
- package/esm/langs/zh_tw.js +8 -1
- package/esm/modules/history/history.d.ts +17 -2
- package/esm/modules/history/history.js +41 -19
- package/esm/modules/table/table.js +7 -2
- package/esm/modules/widget/file-selector/file-selector.js +2 -2
- package/esm/plugins/all.d.ts +1 -0
- package/esm/plugins/all.js +1 -0
- package/esm/plugins/backspace/backspace.js +4 -0
- package/esm/plugins/clean-html/clean-html.d.ts +7 -0
- package/esm/plugins/clean-html/clean-html.js +17 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/replace-old-tags.js +26 -1
- package/esm/plugins/dtd/before-insert/check-block-nesting.d.ts +2 -1
- package/esm/plugins/dtd/before-insert/check-block-nesting.js +26 -5
- package/esm/plugins/enter/helpers/move-cursor-out-from-specal-tags.js +8 -0
- package/esm/plugins/focus/focus.js +3 -0
- package/esm/plugins/hr/hr.js +21 -5
- package/esm/plugins/iframe/config.js +8 -3
- package/esm/plugins/image-processor/image-processor.d.ts +4 -1
- package/esm/plugins/image-processor/image-processor.js +9 -3
- package/esm/plugins/image-properties/readers/align.d.ts +2 -2
- package/esm/plugins/index.d.ts +1 -0
- package/esm/plugins/inline-popup/config/items/iframe.d.ts +9 -1
- package/esm/plugins/inline-popup/config/items/iframe.js +15 -0
- package/esm/plugins/inline-popup/inline-popup.d.ts +5 -0
- package/esm/plugins/inline-popup/inline-popup.js +26 -2
- package/esm/plugins/link/link.js +5 -2
- package/esm/plugins/media/config.d.ts +2 -1
- package/esm/plugins/media/media.js +37 -9
- package/esm/plugins/paste/helpers.d.ts +8 -0
- package/esm/plugins/paste/helpers.js +18 -1
- package/esm/plugins/paste/paste.js +2 -2
- package/esm/plugins/resizer/config.d.ts +5 -3
- package/esm/plugins/resizer/config.js +8 -2
- package/esm/plugins/resizer/resizer.d.ts +10 -0
- package/esm/plugins/resizer/resizer.js +72 -18
- package/esm/plugins/select-cells/select-cells.d.ts +10 -0
- package/esm/plugins/select-cells/select-cells.js +54 -6
- package/esm/plugins/table/config.js +51 -1
- package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js +1 -1
- package/esm/plugins/video/config.d.ts +6 -0
- package/esm/plugins/video/config.js +78 -82
- package/esm/plugins/video-properties/interface.d.ts +31 -0
- package/esm/plugins/video-properties/interface.js +6 -0
- package/esm/plugins/video-properties/readers.d.ts +26 -0
- package/esm/plugins/video-properties/readers.js +65 -0
- package/esm/plugins/video-properties/replace.d.ts +15 -0
- package/esm/plugins/video-properties/replace.js +97 -0
- package/esm/plugins/video-properties/ui/ui-video-form.d.ts +41 -0
- package/esm/plugins/video-properties/ui/ui-video-form.js +228 -0
- package/esm/plugins/video-properties/video-properties.d.ts +37 -0
- package/esm/plugins/video-properties/video-properties.js +175 -0
- package/esm/plugins/video-properties/writers.d.ts +15 -0
- package/esm/plugins/video-properties/writers.js +73 -0
- package/esm/types/types.d.ts +1 -1
- package/package.json +1 -1
- package/types/config.d.ts +29 -28
- package/types/core/helpers/utils/align.d.ts +1 -1
- package/types/core/helpers/utils/index.d.ts +1 -0
- package/types/core/helpers/utils/prepare-media.d.ts +19 -0
- package/types/langs/ar.d.ts +7 -0
- package/types/langs/az.d.ts +7 -0
- package/types/langs/cs_cz.d.ts +7 -0
- package/types/langs/de.d.ts +7 -0
- package/types/langs/es.d.ts +7 -0
- package/types/langs/fa.d.ts +7 -0
- package/types/langs/fi.d.ts +7 -0
- package/types/langs/fr.d.ts +7 -0
- package/types/langs/he.d.ts +7 -0
- package/types/langs/hu.d.ts +7 -0
- package/types/langs/id.d.ts +7 -0
- package/types/langs/it.d.ts +7 -0
- package/types/langs/ja.d.ts +7 -0
- package/types/langs/ko.d.ts +7 -0
- package/types/langs/mn.d.ts +7 -0
- package/types/langs/nl.d.ts +7 -0
- package/types/langs/no.d.ts +7 -0
- package/types/langs/pl.d.ts +7 -0
- package/types/langs/pt_br.d.ts +7 -0
- package/types/langs/ru.d.ts +7 -0
- package/types/langs/sk.d.ts +7 -0
- package/types/langs/sv.d.ts +7 -0
- package/types/langs/tr.d.ts +7 -0
- package/types/langs/ua.d.ts +7 -0
- package/types/langs/zh_cn.d.ts +7 -0
- package/types/langs/zh_tw.d.ts +7 -0
- package/types/modules/history/history.d.ts +17 -2
- package/types/plugins/clean-html/clean-html.d.ts +7 -0
- package/types/plugins/dtd/before-insert/check-block-nesting.d.ts +2 -1
- package/types/plugins/image-processor/image-processor.d.ts +4 -1
- package/types/plugins/image-properties/readers/align.d.ts +2 -2
- package/types/plugins/index.d.ts +1 -0
- package/types/plugins/inline-popup/config/items/iframe.d.ts +9 -1
- package/types/plugins/inline-popup/inline-popup.d.ts +5 -0
- package/types/plugins/media/config.d.ts +2 -1
- package/types/plugins/paste/helpers.d.ts +8 -0
- package/types/plugins/resizer/config.d.ts +5 -3
- package/types/plugins/resizer/resizer.d.ts +10 -0
- package/types/plugins/select-cells/select-cells.d.ts +10 -0
- package/types/plugins/video/config.d.ts +6 -0
- package/types/plugins/video-properties/interface.d.ts +31 -0
- package/types/plugins/video-properties/readers.d.ts +26 -0
- package/types/plugins/video-properties/replace.d.ts +15 -0
- package/types/plugins/video-properties/ui/ui-video-form.d.ts +41 -0
- package/types/plugins/video-properties/video-properties.d.ts +37 -0
- package/types/plugins/video-properties/writers.d.ts +15 -0
- package/types/types/types.d.ts +1 -1
|
@@ -28,6 +28,7 @@ export * from "./is-unsafe-proto-key";
|
|
|
28
28
|
export * from "./mark-deprecated";
|
|
29
29
|
export * from "./media-wrapper";
|
|
30
30
|
export * from "./parse-query";
|
|
31
|
+
export * from "./prepare-media";
|
|
31
32
|
export * from "./print";
|
|
32
33
|
export * from "./reset";
|
|
33
34
|
export * from "./scroll-into-view";
|
|
@@ -0,0 +1,19 @@
|
|
|
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 } from "../../../types/index";
|
|
10
|
+
/**
|
|
11
|
+
* Puts new media in its wrapper (see `mediaWrappers`) and aligns it with
|
|
12
|
+
* `mediaDefaultAlign`. Returns the wrapper, or `element` when there is none
|
|
13
|
+
*/
|
|
14
|
+
export declare function prepareMedia(jodit: IJodit, element: HTMLElement): HTMLElement;
|
|
15
|
+
/**
|
|
16
|
+
* Embed code that is one element is prepared as media (see `prepareMedia`);
|
|
17
|
+
* other code is returned as it is
|
|
18
|
+
*/
|
|
19
|
+
export declare function prepareEmbedCode(jodit: IJodit, code: string): string | HTMLElement;
|
package/types/langs/ar.d.ts
CHANGED
|
@@ -213,5 +213,12 @@ declare const _exports: {
|
|
|
213
213
|
spellcheck: string;
|
|
214
214
|
'Speech Recognize': string;
|
|
215
215
|
All: string;
|
|
216
|
+
'Video properties': string;
|
|
217
|
+
'Audio properties': string;
|
|
218
|
+
Poster: string;
|
|
219
|
+
Autoplay: string;
|
|
220
|
+
Loop: string;
|
|
221
|
+
Muted: string;
|
|
222
|
+
Controls: string;
|
|
216
223
|
};
|
|
217
224
|
export = _exports;
|
package/types/langs/az.d.ts
CHANGED
|
@@ -219,5 +219,12 @@ declare const _exports: {
|
|
|
219
219
|
'Insert className': string;
|
|
220
220
|
'Press Alt for custom resizing': string;
|
|
221
221
|
'License: %s': string;
|
|
222
|
+
'Video properties': string;
|
|
223
|
+
'Audio properties': string;
|
|
224
|
+
Poster: string;
|
|
225
|
+
Autoplay: string;
|
|
226
|
+
Loop: string;
|
|
227
|
+
Muted: string;
|
|
228
|
+
Controls: string;
|
|
222
229
|
};
|
|
223
230
|
export = _exports;
|
package/types/langs/cs_cz.d.ts
CHANGED
|
@@ -211,5 +211,12 @@ declare const _exports: {
|
|
|
211
211
|
'Find Next': string;
|
|
212
212
|
'Insert className': string;
|
|
213
213
|
'Press Alt for custom resizing': string;
|
|
214
|
+
'Video properties': string;
|
|
215
|
+
'Audio properties': string;
|
|
216
|
+
Poster: string;
|
|
217
|
+
Autoplay: string;
|
|
218
|
+
Loop: string;
|
|
219
|
+
Muted: string;
|
|
220
|
+
Controls: string;
|
|
214
221
|
};
|
|
215
222
|
export = _exports;
|
package/types/langs/de.d.ts
CHANGED
|
@@ -215,5 +215,12 @@ declare const _exports: {
|
|
|
215
215
|
'Insert className': string;
|
|
216
216
|
'Press Alt for custom resizing': string;
|
|
217
217
|
'License: %s': string;
|
|
218
|
+
'Video properties': string;
|
|
219
|
+
'Audio properties': string;
|
|
220
|
+
Poster: string;
|
|
221
|
+
Autoplay: string;
|
|
222
|
+
Loop: string;
|
|
223
|
+
Muted: string;
|
|
224
|
+
Controls: string;
|
|
218
225
|
};
|
|
219
226
|
export = _exports;
|
package/types/langs/es.d.ts
CHANGED
|
@@ -215,5 +215,12 @@ declare const _exports: {
|
|
|
215
215
|
'Insert className': string;
|
|
216
216
|
'Press Alt for custom resizing': string;
|
|
217
217
|
'License: %s': string;
|
|
218
|
+
'Video properties': string;
|
|
219
|
+
'Audio properties': string;
|
|
220
|
+
Poster: string;
|
|
221
|
+
Autoplay: string;
|
|
222
|
+
Loop: string;
|
|
223
|
+
Muted: string;
|
|
224
|
+
Controls: string;
|
|
218
225
|
};
|
|
219
226
|
export = _exports;
|
package/types/langs/fa.d.ts
CHANGED
|
@@ -210,5 +210,12 @@ declare const _exports: {
|
|
|
210
210
|
'Insert className': string;
|
|
211
211
|
'Press Alt for custom resizing': string;
|
|
212
212
|
'License: %s': string;
|
|
213
|
+
'Video properties': string;
|
|
214
|
+
'Audio properties': string;
|
|
215
|
+
Poster: string;
|
|
216
|
+
Autoplay: string;
|
|
217
|
+
Loop: string;
|
|
218
|
+
Muted: string;
|
|
219
|
+
Controls: string;
|
|
213
220
|
};
|
|
214
221
|
export = _exports;
|
package/types/langs/fi.d.ts
CHANGED
|
@@ -216,5 +216,12 @@ declare const _exports: {
|
|
|
216
216
|
'Press Alt for custom resizing': string;
|
|
217
217
|
'Class name': string;
|
|
218
218
|
'License: %s': string;
|
|
219
|
+
'Video properties': string;
|
|
220
|
+
'Audio properties': string;
|
|
221
|
+
Poster: string;
|
|
222
|
+
Autoplay: string;
|
|
223
|
+
Loop: string;
|
|
224
|
+
Muted: string;
|
|
225
|
+
Controls: string;
|
|
219
226
|
};
|
|
220
227
|
export = _exports;
|
package/types/langs/fr.d.ts
CHANGED
|
@@ -210,5 +210,12 @@ declare const _exports: {
|
|
|
210
210
|
Edit: string;
|
|
211
211
|
All: string;
|
|
212
212
|
'License: %s': string;
|
|
213
|
+
'Video properties': string;
|
|
214
|
+
'Audio properties': string;
|
|
215
|
+
Poster: string;
|
|
216
|
+
Autoplay: string;
|
|
217
|
+
Loop: string;
|
|
218
|
+
Muted: string;
|
|
219
|
+
Controls: string;
|
|
213
220
|
};
|
|
214
221
|
export = _exports;
|
package/types/langs/he.d.ts
CHANGED
|
@@ -210,5 +210,12 @@ declare const _exports: {
|
|
|
210
210
|
'Insert className': string;
|
|
211
211
|
'Press Alt for custom resizing': string;
|
|
212
212
|
'License: %s': string;
|
|
213
|
+
'Video properties': string;
|
|
214
|
+
'Audio properties': string;
|
|
215
|
+
Poster: string;
|
|
216
|
+
Autoplay: string;
|
|
217
|
+
Loop: string;
|
|
218
|
+
Muted: string;
|
|
219
|
+
Controls: string;
|
|
213
220
|
};
|
|
214
221
|
export = _exports;
|
package/types/langs/hu.d.ts
CHANGED
|
@@ -212,5 +212,12 @@ declare const _exports: {
|
|
|
212
212
|
'Insert className': string;
|
|
213
213
|
'Press Alt for custom resizing': string;
|
|
214
214
|
'License: %s': string;
|
|
215
|
+
'Video properties': string;
|
|
216
|
+
'Audio properties': string;
|
|
217
|
+
Poster: string;
|
|
218
|
+
Autoplay: string;
|
|
219
|
+
Loop: string;
|
|
220
|
+
Muted: string;
|
|
221
|
+
Controls: string;
|
|
215
222
|
};
|
|
216
223
|
export = _exports;
|
package/types/langs/id.d.ts
CHANGED
|
@@ -211,5 +211,12 @@ declare const _exports: {
|
|
|
211
211
|
'Find Next': string;
|
|
212
212
|
'Insert className': string;
|
|
213
213
|
'Press Alt for custom resizing': string;
|
|
214
|
+
'Video properties': string;
|
|
215
|
+
'Audio properties': string;
|
|
216
|
+
Poster: string;
|
|
217
|
+
Autoplay: string;
|
|
218
|
+
Loop: string;
|
|
219
|
+
Muted: string;
|
|
220
|
+
Controls: string;
|
|
214
221
|
};
|
|
215
222
|
export = _exports;
|
package/types/langs/it.d.ts
CHANGED
|
@@ -215,5 +215,12 @@ declare const _exports: {
|
|
|
215
215
|
'Insert className': string;
|
|
216
216
|
'Press Alt for custom resizing': string;
|
|
217
217
|
'License: %s': string;
|
|
218
|
+
'Video properties': string;
|
|
219
|
+
'Audio properties': string;
|
|
220
|
+
Poster: string;
|
|
221
|
+
Autoplay: string;
|
|
222
|
+
Loop: string;
|
|
223
|
+
Muted: string;
|
|
224
|
+
Controls: string;
|
|
218
225
|
};
|
|
219
226
|
export = _exports;
|
package/types/langs/ja.d.ts
CHANGED
|
@@ -215,5 +215,12 @@ declare const _exports: {
|
|
|
215
215
|
'Insert className': string;
|
|
216
216
|
'Press Alt for custom resizing': string;
|
|
217
217
|
'License: %s': string;
|
|
218
|
+
'Video properties': string;
|
|
219
|
+
'Audio properties': string;
|
|
220
|
+
Poster: string;
|
|
221
|
+
Autoplay: string;
|
|
222
|
+
Loop: string;
|
|
223
|
+
Muted: string;
|
|
224
|
+
Controls: string;
|
|
218
225
|
};
|
|
219
226
|
export = _exports;
|
package/types/langs/ko.d.ts
CHANGED
|
@@ -209,5 +209,12 @@ declare const _exports: {
|
|
|
209
209
|
'Find Next': string;
|
|
210
210
|
'Insert className': string;
|
|
211
211
|
'Press Alt for custom resizing': string;
|
|
212
|
+
'Video properties': string;
|
|
213
|
+
'Audio properties': string;
|
|
214
|
+
Poster: string;
|
|
215
|
+
Autoplay: string;
|
|
216
|
+
Loop: string;
|
|
217
|
+
Muted: string;
|
|
218
|
+
Controls: string;
|
|
212
219
|
};
|
|
213
220
|
export = _exports;
|
package/types/langs/mn.d.ts
CHANGED
|
@@ -210,5 +210,12 @@ declare const _exports: {
|
|
|
210
210
|
'Insert className': string;
|
|
211
211
|
'Press Alt for custom resizing': string;
|
|
212
212
|
'License: %s': string;
|
|
213
|
+
'Video properties': string;
|
|
214
|
+
'Audio properties': string;
|
|
215
|
+
Poster: string;
|
|
216
|
+
Autoplay: string;
|
|
217
|
+
Loop: string;
|
|
218
|
+
Muted: string;
|
|
219
|
+
Controls: string;
|
|
213
220
|
};
|
|
214
221
|
export = _exports;
|
package/types/langs/nl.d.ts
CHANGED
|
@@ -211,5 +211,12 @@ declare const _exports: {
|
|
|
211
211
|
'Insert className': string;
|
|
212
212
|
'Press Alt for custom resizing': string;
|
|
213
213
|
'License: %s': string;
|
|
214
|
+
'Video properties': string;
|
|
215
|
+
'Audio properties': string;
|
|
216
|
+
Poster: string;
|
|
217
|
+
Autoplay: string;
|
|
218
|
+
Loop: string;
|
|
219
|
+
Muted: string;
|
|
220
|
+
Controls: string;
|
|
214
221
|
};
|
|
215
222
|
export = _exports;
|
package/types/langs/no.d.ts
CHANGED
|
@@ -219,5 +219,12 @@ declare const _exports: {
|
|
|
219
219
|
Quadrate: string;
|
|
220
220
|
'Find Previous': string;
|
|
221
221
|
'Find Next': string;
|
|
222
|
+
'Video properties': string;
|
|
223
|
+
'Audio properties': string;
|
|
224
|
+
Poster: string;
|
|
225
|
+
Autoplay: string;
|
|
226
|
+
Loop: string;
|
|
227
|
+
Muted: string;
|
|
228
|
+
Controls: string;
|
|
222
229
|
};
|
|
223
230
|
export = _exports;
|
package/types/langs/pl.d.ts
CHANGED
|
@@ -210,5 +210,12 @@ declare const _exports: {
|
|
|
210
210
|
'Insert className': string;
|
|
211
211
|
'Press Alt for custom resizing': string;
|
|
212
212
|
'License: %s': string;
|
|
213
|
+
'Video properties': string;
|
|
214
|
+
'Audio properties': string;
|
|
215
|
+
Poster: string;
|
|
216
|
+
Autoplay: string;
|
|
217
|
+
Loop: string;
|
|
218
|
+
Muted: string;
|
|
219
|
+
Controls: string;
|
|
213
220
|
};
|
|
214
221
|
export = _exports;
|
package/types/langs/pt_br.d.ts
CHANGED
|
@@ -215,5 +215,12 @@ declare const _exports: {
|
|
|
215
215
|
'Insert className': string;
|
|
216
216
|
'Press Alt for custom resizing': string;
|
|
217
217
|
'License: %s': string;
|
|
218
|
+
'Video properties': string;
|
|
219
|
+
'Audio properties': string;
|
|
220
|
+
Poster: string;
|
|
221
|
+
Autoplay: string;
|
|
222
|
+
Loop: string;
|
|
223
|
+
Muted: string;
|
|
224
|
+
Controls: string;
|
|
218
225
|
};
|
|
219
226
|
export = _exports;
|
package/types/langs/ru.d.ts
CHANGED
|
@@ -209,5 +209,12 @@ declare const _exports: {
|
|
|
209
209
|
'Find Next': string;
|
|
210
210
|
'Insert className': string;
|
|
211
211
|
'Press Alt for custom resizing': string;
|
|
212
|
+
'Video properties': string;
|
|
213
|
+
'Audio properties': string;
|
|
214
|
+
Poster: string;
|
|
215
|
+
Autoplay: string;
|
|
216
|
+
Loop: string;
|
|
217
|
+
Muted: string;
|
|
218
|
+
Controls: string;
|
|
212
219
|
};
|
|
213
220
|
export = _exports;
|
package/types/langs/sk.d.ts
CHANGED
|
@@ -217,5 +217,12 @@ declare const _exports: {
|
|
|
217
217
|
'Edit image': string;
|
|
218
218
|
'Tiles view': string;
|
|
219
219
|
'List view': string;
|
|
220
|
+
'Video properties': string;
|
|
221
|
+
'Audio properties': string;
|
|
222
|
+
Poster: string;
|
|
223
|
+
Autoplay: string;
|
|
224
|
+
Loop: string;
|
|
225
|
+
Muted: string;
|
|
226
|
+
Controls: string;
|
|
220
227
|
};
|
|
221
228
|
export = _exports;
|
package/types/langs/sv.d.ts
CHANGED
|
@@ -218,5 +218,12 @@ declare const _exports: {
|
|
|
218
218
|
'Embed code': string;
|
|
219
219
|
All: string;
|
|
220
220
|
'License: %s': string;
|
|
221
|
+
'Video properties': string;
|
|
222
|
+
'Audio properties': string;
|
|
223
|
+
Poster: string;
|
|
224
|
+
Autoplay: string;
|
|
225
|
+
Loop: string;
|
|
226
|
+
Muted: string;
|
|
227
|
+
Controls: string;
|
|
221
228
|
};
|
|
222
229
|
export = _exports;
|
package/types/langs/tr.d.ts
CHANGED
|
@@ -210,5 +210,12 @@ declare const _exports: {
|
|
|
210
210
|
'Insert className': string;
|
|
211
211
|
'Press Alt for custom resizing': string;
|
|
212
212
|
'License: %s': string;
|
|
213
|
+
'Video properties': string;
|
|
214
|
+
'Audio properties': string;
|
|
215
|
+
Poster: string;
|
|
216
|
+
Autoplay: string;
|
|
217
|
+
Loop: string;
|
|
218
|
+
Muted: string;
|
|
219
|
+
Controls: string;
|
|
213
220
|
};
|
|
214
221
|
export = _exports;
|
package/types/langs/ua.d.ts
CHANGED
|
@@ -209,5 +209,12 @@ declare const _exports: {
|
|
|
209
209
|
'Find Next': string;
|
|
210
210
|
'Insert className': string;
|
|
211
211
|
'Press Alt for custom resizing': string;
|
|
212
|
+
'Video properties': string;
|
|
213
|
+
'Audio properties': string;
|
|
214
|
+
Poster: string;
|
|
215
|
+
Autoplay: string;
|
|
216
|
+
Loop: string;
|
|
217
|
+
Muted: string;
|
|
218
|
+
Controls: string;
|
|
212
219
|
};
|
|
213
220
|
export = _exports;
|
package/types/langs/zh_cn.d.ts
CHANGED
|
@@ -211,5 +211,12 @@ declare const _exports: {
|
|
|
211
211
|
'Insert className': string;
|
|
212
212
|
'Press Alt for custom resizing': string;
|
|
213
213
|
'License: %s': string;
|
|
214
|
+
'Video properties': string;
|
|
215
|
+
'Audio properties': string;
|
|
216
|
+
Poster: string;
|
|
217
|
+
Autoplay: string;
|
|
218
|
+
Loop: string;
|
|
219
|
+
Muted: string;
|
|
220
|
+
Controls: string;
|
|
214
221
|
};
|
|
215
222
|
export = _exports;
|
package/types/langs/zh_tw.d.ts
CHANGED
|
@@ -210,5 +210,12 @@ declare const _exports: {
|
|
|
210
210
|
'Press Alt for custom resizing': string;
|
|
211
211
|
Edit: string;
|
|
212
212
|
'License: %s': string;
|
|
213
|
+
'Video properties': string;
|
|
214
|
+
'Audio properties': string;
|
|
215
|
+
Poster: string;
|
|
216
|
+
Autoplay: string;
|
|
217
|
+
Loop: string;
|
|
218
|
+
Muted: string;
|
|
219
|
+
Controls: string;
|
|
213
220
|
};
|
|
214
221
|
export = _exports;
|
|
@@ -21,7 +21,8 @@ declare module 'jodit/config' {
|
|
|
21
21
|
*/
|
|
22
22
|
maxHistoryLength: number;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* How long a step stays open after its first change, in
|
|
25
|
+
* milliseconds. The changes made in that time are undone together.
|
|
25
26
|
*/
|
|
26
27
|
timeout: number;
|
|
27
28
|
};
|
|
@@ -52,15 +53,29 @@ export declare class History extends ViewComponent<IJodit> implements IHistory {
|
|
|
52
53
|
snapshot: ISnapshot & IDestructible;
|
|
53
54
|
constructor(editor: IJodit, stack?: Stack, snapshot?: Snapshot);
|
|
54
55
|
private updateTick;
|
|
56
|
+
/**
|
|
57
|
+
* A step is open: changes have come in that are not in the stack yet
|
|
58
|
+
*/
|
|
59
|
+
private __hasPendingChanges;
|
|
60
|
+
/**
|
|
61
|
+
* Records the open step `history.timeout` after its first change
|
|
62
|
+
*/
|
|
63
|
+
private __timer;
|
|
55
64
|
/**
|
|
56
65
|
* Update change counter
|
|
57
66
|
* @internal
|
|
58
67
|
*/
|
|
59
68
|
protected __upTick(): void;
|
|
60
69
|
/**
|
|
61
|
-
* Push new command in stack on some changes
|
|
70
|
+
* Push new command in stack on some changes. The first change opens a
|
|
71
|
+
* step, and later ones join it until `history.timeout` has passed,
|
|
72
|
+
* however close together they come.
|
|
62
73
|
*/
|
|
63
74
|
private onChange;
|
|
75
|
+
/**
|
|
76
|
+
* Push the open step's changes now
|
|
77
|
+
*/
|
|
78
|
+
private __processPendingChanges;
|
|
64
79
|
/**
|
|
65
80
|
* @internal
|
|
66
81
|
*/
|
|
@@ -40,6 +40,13 @@ export declare class cleanHtml extends Plugin {
|
|
|
40
40
|
protected onBeforeSetNativeEditorValue(data: {
|
|
41
41
|
value: string;
|
|
42
42
|
}): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Replace old tags (`<b>` with `<strong>`, `<i>` with `<em>`) in an
|
|
45
|
+
* assigned value straight away. The walker would get to them only after
|
|
46
|
+
* every node before them, seconds later on a long document, and until
|
|
47
|
+
* then Bold does not treat `<b>` as bold, and the swap can move the caret.
|
|
48
|
+
*/
|
|
49
|
+
private __replaceOldTags;
|
|
43
50
|
/**
|
|
44
51
|
* Collapse a value that holds only a single empty block (e.g.
|
|
45
52
|
* `<p><br></p>` left after deleting all content) to an empty string —
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
import type { IJodit, Nullable } from "../../../types/index";
|
|
11
11
|
/**
|
|
12
12
|
* Checks whether the insertion of an element at the current location is allowed,
|
|
13
|
-
* if it is not allowed, it deletes an empty block element
|
|
13
|
+
* if it is not allowed, it deletes an empty block element, moves the cursor
|
|
14
|
+
* before or after it, or splits it at the cursor
|
|
14
15
|
* @internal
|
|
15
16
|
*/
|
|
16
17
|
export declare function checkBlockNesting(jodit: IJodit, node: Nullable<Node>): void;
|
|
@@ -25,7 +25,10 @@ export declare class imageProcessor extends Plugin {
|
|
|
25
25
|
}): void;
|
|
26
26
|
/**
|
|
27
27
|
* While the selection is an image, only the image is highlighted: Safari
|
|
28
|
-
* paints the rest of a block image's line with its parent's highlight. See #1528
|
|
28
|
+
* paints the rest of a block image's line with its parent's highlight. See #1528.
|
|
29
|
+
* Media in a wrapper (`jodit-media`, the resizer's `jodit` for an embed, or
|
|
30
|
+
* one from `mediaWrappers`) isn't highlighted either, as Safari paints its
|
|
31
|
+
* wrapper's whole line, and its resize frame shows it's selected
|
|
29
32
|
*/
|
|
30
33
|
private onSelectionChange;
|
|
31
34
|
protected afterChange(data: {
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module plugins/image-properties
|
|
8
8
|
*/
|
|
9
|
-
import type {
|
|
9
|
+
import type { HAlignClasses, Nullable } from "../../../types/index";
|
|
10
10
|
import type { EditValues } from "../interface";
|
|
11
11
|
/**
|
|
12
12
|
* @private
|
|
13
13
|
*/
|
|
14
|
-
export declare function readAlign(image: HTMLImageElement, values: EditValues, classes?: Nullable<
|
|
14
|
+
export declare function readAlign(image: HTMLImageElement, values: EditValues, classes?: Nullable<HAlignClasses>): void;
|
package/types/plugins/index.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ import "./table/table";
|
|
|
68
68
|
import "./table-keyboard-navigation/table-keyboard-navigation";
|
|
69
69
|
import "./toolbar-navigation/toolbar-navigation";
|
|
70
70
|
import "./video/video";
|
|
71
|
+
import "./video-properties/video-properties";
|
|
71
72
|
import "./wrap-nodes/wrap-nodes";
|
|
72
73
|
import "./dtd/dtd";
|
|
73
74
|
import "./xpath/xpath";
|
|
@@ -6,10 +6,18 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module plugins/inline-popup
|
|
8
8
|
*/
|
|
9
|
-
import type { IJodit } from "../../../../types/index";
|
|
9
|
+
import type { IJodit, Nullable } from "../../../../types/index";
|
|
10
10
|
declare const _default: (import("../../../../types/index").IControlType<IJodit, import("../../../../types/index").IToolbarButton> | {
|
|
11
|
+
name: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
tooltip: string;
|
|
14
|
+
popup: (editor: IJodit, target: Nullable<Node>, close: () => void) => HTMLElement | void;
|
|
15
|
+
exec?: undefined;
|
|
16
|
+
} | {
|
|
11
17
|
name: string;
|
|
12
18
|
tooltip: string;
|
|
13
19
|
exec: (editor: IJodit, image: HTMLImageElement) => void;
|
|
20
|
+
icon?: undefined;
|
|
21
|
+
popup?: undefined;
|
|
14
22
|
})[];
|
|
15
23
|
export default _default;
|
|
@@ -20,6 +20,11 @@ export declare class inlinePopup extends Plugin {
|
|
|
20
20
|
private get popup();
|
|
21
21
|
private get toolbar();
|
|
22
22
|
private onClick;
|
|
23
|
+
/**
|
|
24
|
+
* The box the popup opens beside: the target's, with room for the
|
|
25
|
+
* resizer's handles when the target gets them, so it doesn't cover them
|
|
26
|
+
*/
|
|
27
|
+
private __bound;
|
|
23
28
|
/**
|
|
24
29
|
* Show inline popup with some toolbar
|
|
25
30
|
*
|
|
@@ -28,7 +28,8 @@ declare module 'jodit/config' {
|
|
|
28
28
|
* - is wrapped in it instead of the editor-only `mediaFakeTag` when its tag
|
|
29
29
|
* is one of `mediaBlocks`, or left in it when it's already in one
|
|
30
30
|
* - goes in inside it when the video popup inserts it, as an upload, a
|
|
31
|
-
* link's embed or embed code that is one element
|
|
31
|
+
* link's embed or embed code that is one element, and when a pasted
|
|
32
|
+
* video link is turned into its embed
|
|
32
33
|
* - opens the media popup for its wrapper when clicked, whose Align and
|
|
33
34
|
* Delete act on the wrapper
|
|
34
35
|
*
|
|
@@ -8,6 +8,14 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { IDialog, IJodit, InsertMode, IUIOption, Nullable } from "../../types/index";
|
|
10
10
|
import type { PasteEvent } from "./interface";
|
|
11
|
+
/**
|
|
12
|
+
* Google Docs wraps the copied content in
|
|
13
|
+
* `<b style="font-weight:normal;" id="docs-internal-guid-…">`. Kept, the
|
|
14
|
+
* wrapper holds the pasted blocks, and without its style it makes the whole
|
|
15
|
+
* paste bold
|
|
16
|
+
* @private
|
|
17
|
+
*/
|
|
18
|
+
export declare function removeGoogleDocsWrapper(html: string): string;
|
|
11
19
|
/**
|
|
12
20
|
* One insert point for clipboard plugins
|
|
13
21
|
* @private
|
|
@@ -10,7 +10,7 @@ import type { HTMLTagNames } from "../../types/index";
|
|
|
10
10
|
declare module 'jodit/config' {
|
|
11
11
|
interface Config {
|
|
12
12
|
/**
|
|
13
|
-
* Set of HTML tag names whose elements can be resized by the user via drag handles (e.g. images, iframes, tables)
|
|
13
|
+
* Set of HTML tag names whose elements can be resized by the user via drag handles (e.g. images, iframes, tables, videos)
|
|
14
14
|
*/
|
|
15
15
|
allowResizeTags: Set<HTMLTagNames>;
|
|
16
16
|
resizer: {
|
|
@@ -23,14 +23,16 @@ declare module 'jodit/config' {
|
|
|
23
23
|
* Save width and height proportions when resizing
|
|
24
24
|
* ```js
|
|
25
25
|
* Jodit.make('#editor', {
|
|
26
|
-
* allowResizeTags: ['img', 'iframe', 'table', 'jodit'],
|
|
26
|
+
* allowResizeTags: new Set(['img', 'iframe', 'table', 'jodit', 'video']),
|
|
27
27
|
* resizer: {
|
|
28
28
|
* useAspectRatio: false, // don't save,
|
|
29
|
-
* useAspectRatio: ['img'], // save only for images
|
|
29
|
+
* useAspectRatio: new Set(['img']), // save only for images
|
|
30
30
|
* useAspectRatio: true // save for all
|
|
31
31
|
* }
|
|
32
32
|
* });
|
|
33
33
|
* ```
|
|
34
|
+
* Images and videos keep it by default. A video with no height of its
|
|
35
|
+
* own keeps it by being given only a width.
|
|
34
36
|
*/
|
|
35
37
|
useAspectRatio: boolean | Set<HTMLTagNames>;
|
|
36
38
|
/**
|
|
@@ -26,6 +26,7 @@ export declare class resizer extends Plugin {
|
|
|
26
26
|
private height;
|
|
27
27
|
private ratio;
|
|
28
28
|
private rect;
|
|
29
|
+
private layer;
|
|
29
30
|
private sizeViewer;
|
|
30
31
|
/** @override */
|
|
31
32
|
protected afterInit(editor: IJodit): void;
|
|
@@ -33,6 +34,11 @@ export declare class resizer extends Plugin {
|
|
|
33
34
|
* Click in the editor area
|
|
34
35
|
*/
|
|
35
36
|
protected onEditorClick(e: MouseEvent): void;
|
|
37
|
+
/**
|
|
38
|
+
* What a click on `node` resizes: the media in it when it's a media
|
|
39
|
+
* wrapper (`jodit-media`, or one from `mediaWrappers`), or `node` itself
|
|
40
|
+
*/
|
|
41
|
+
private __resizable;
|
|
36
42
|
protected __afterInsertImage(image: HTMLImageElement): void;
|
|
37
43
|
private addEventListeners;
|
|
38
44
|
private onStartResizing;
|
|
@@ -46,6 +52,10 @@ export declare class resizer extends Plugin {
|
|
|
46
52
|
private onClickOutside;
|
|
47
53
|
private getWorkplacePosition;
|
|
48
54
|
private applySize;
|
|
55
|
+
/**
|
|
56
|
+
* The framed element can go with a wrapper round it, keeping its parent
|
|
57
|
+
*/
|
|
58
|
+
private get isElementInEditor();
|
|
49
59
|
private onDelete;
|
|
50
60
|
private __onChangeEditor;
|
|
51
61
|
/**
|
|
@@ -52,10 +52,20 @@ export declare class selectCells extends Plugin {
|
|
|
52
52
|
* Execute custom commands for table
|
|
53
53
|
*/
|
|
54
54
|
private onExecCommand;
|
|
55
|
+
/**
|
|
56
|
+
* The cell that takes the caret when rows or columns are deleted: the next
|
|
57
|
+
* one in the same column (or row) that is not deleted, else the previous one
|
|
58
|
+
*/
|
|
59
|
+
private __nearestCell;
|
|
55
60
|
/**
|
|
56
61
|
* Add some align after native command
|
|
57
62
|
*/
|
|
58
63
|
private onAfterCommand;
|
|
64
|
+
/**
|
|
65
|
+
* Remove the table and put the caret where it stood: at the start of what
|
|
66
|
+
* follows it, else at the end of what precedes it
|
|
67
|
+
*/
|
|
68
|
+
private __removeTable;
|
|
59
69
|
/** @override */
|
|
60
70
|
protected beforeDestruct(jodit: IJodit): void;
|
|
61
71
|
}
|
|
@@ -53,3 +53,9 @@ declare module 'jodit/config' {
|
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* The video popup's tabs: Upload, when the uploader is configured, then Link
|
|
58
|
+
* and Code. `insert` runs what a tab inserts, which by default goes in at the
|
|
59
|
+
* selection the popup was opened with.
|
|
60
|
+
*/
|
|
61
|
+
export declare function videoTabs(jodit: IJodit, close: () => void, insert?: (run: () => void) => void): HTMLElement;
|