jodit 4.19.9 → 4.19.11
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 +145 -131
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +19 -19
- package/es2015/jodit.js +1222 -1033
- package/es2015/jodit.min.js +19 -19
- 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 +8 -8
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2018/jodit.fat.min.js +19 -19
- package/es2018/jodit.min.js +19 -19
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +26 -26
- package/es2021/jodit.js +1216 -1027
- package/es2021/jodit.min.js +26 -26
- 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 +8 -8
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +28 -28
- package/es2021.en/jodit.js +1216 -1027
- package/es2021.en/jodit.min.js +28 -28
- 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 +8 -8
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +1299 -1046
- 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 +8 -8
- package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/core/dom/dom.js +2 -2
- package/esm/core/helpers/checker/is-html-from-word.d.ts +4 -3
- package/esm/core/helpers/checker/is-html-from-word.js +94 -14
- package/esm/core/helpers/checker/is-html.d.ts +4 -0
- package/esm/core/helpers/checker/is-html.js +54 -2
- package/esm/core/helpers/html/apply-styles.js +20 -11
- package/esm/core/helpers/html/clean-from-word.js +2 -3
- package/esm/core/helpers/html/index.d.ts +1 -0
- package/esm/core/helpers/html/index.js +1 -0
- package/esm/core/helpers/html/tag-scan.d.ts +36 -0
- package/esm/core/helpers/html/tag-scan.js +257 -0
- package/esm/core/helpers/string/trim.d.ts +4 -0
- package/esm/core/helpers/string/trim.js +29 -10
- package/esm/core/selection/helpers/index.js +3 -2
- package/esm/jodit.js +2 -1
- package/esm/plugins/delete/delete.d.ts +6 -0
- package/esm/plugins/delete/delete.js +61 -2
- package/esm/plugins/iframe/iframe.js +59 -12
- package/esm/plugins/media/media.js +2 -4
- package/esm/plugins/paste/helpers.js +4 -2
- package/esm/plugins/resizer/resizer.js +2 -4
- package/package.json +1 -1
- package/types/core/helpers/checker/is-html-from-word.d.ts +4 -3
- package/types/core/helpers/checker/is-html.d.ts +4 -0
- package/types/core/helpers/html/index.d.ts +1 -0
- package/types/core/helpers/html/tag-scan.d.ts +36 -0
- package/types/core/helpers/string/trim.d.ts +4 -0
- package/types/plugins/delete/delete.d.ts +6 -0
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
* The first `</name>` at or after `from`, case-insensitive, or -1
|
|
8
|
+
*/
|
|
9
|
+
export declare function indexOfClosingTag(html: string, name: string, from: number): number;
|
|
10
|
+
/**
|
|
11
|
+
* Remove every tag that starts with one of the prefixes, up to its `>`:
|
|
12
|
+
* `removeTagsByPrefix(html, ['<meta', '<!--'])`
|
|
13
|
+
*/
|
|
14
|
+
export declare function removeTagsByPrefix(html: string, prefixes: string[]): string;
|
|
15
|
+
/**
|
|
16
|
+
* Strip the Word wrapper tags and then the comments, as the clean-up always did
|
|
17
|
+
*/
|
|
18
|
+
export declare function removeWordWrappers(html: string): string;
|
|
19
|
+
/**
|
|
20
|
+
* The index of the first `<name>` or `<name …>` tag, or -1
|
|
21
|
+
*/
|
|
22
|
+
export declare function indexOfOpenTag(html: string, name: string): number;
|
|
23
|
+
/**
|
|
24
|
+
* Replace every `<name … marker …>inner</name>` with `inner`.
|
|
25
|
+
* `name` null takes any tag; `keep` can refuse an element by its inner HTML.
|
|
26
|
+
*/
|
|
27
|
+
export declare function unwrapMarkedTags(html: string, name: string | null, marker: string, keep?: (inner: string) => boolean): string;
|
|
28
|
+
/**
|
|
29
|
+
* Remove every `open … openEnd … close` block whose opener holds `marker` (any opener when it is ''):
|
|
30
|
+
* `removeBetween(html, '<style', '>', '</style>', 'jodit-box')`
|
|
31
|
+
*/
|
|
32
|
+
export declare function removeBetween(html: string, open: string, openEnd: string, close: string, marker?: string): string;
|
|
33
|
+
/**
|
|
34
|
+
* Remove every empty `<name … marker …></name>` element
|
|
35
|
+
*/
|
|
36
|
+
export declare function removeEmptyMarkedTags(html: string, name: string, marker: string): string;
|
|
@@ -13,3 +13,7 @@ export declare function trimChars(value: string, chars: string): string;
|
|
|
13
13
|
* Trim only invisible chars
|
|
14
14
|
*/
|
|
15
15
|
export declare function trimInv(value: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* Without the invisible chars at the end
|
|
18
|
+
*/
|
|
19
|
+
export declare function trimInvEnd(value: string): string;
|
|
@@ -38,6 +38,12 @@ export declare class deleteCommand extends Plugin {
|
|
|
38
38
|
* delete and in Backspace without a selection (#1522)
|
|
39
39
|
*/
|
|
40
40
|
private __keepSpacesVisible;
|
|
41
|
+
/**
|
|
42
|
+
* A deletion that starts or ends in a table leaves the fake between the
|
|
43
|
+
* table and the block it reached into, and a space at that block's edge
|
|
44
|
+
* would be hidden as well (#1783)
|
|
45
|
+
*/
|
|
46
|
+
private __keepSpacesVisibleBesideTable;
|
|
41
47
|
/**
|
|
42
48
|
* The text, line break or other element next to the caret in its block,
|
|
43
49
|
* looking inside inline elements
|