jodit 4.6.1 → 4.6.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/.nvmrc +1 -1
- package/CHANGELOG.md +22 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +2930 -2896
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +56 -56
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +2837 -2803
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.css +1 -1
- package/es2018/plugins/debug/debug.js +1 -1
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.js +56 -56
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +2838 -2804
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +56 -56
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +2796 -2762
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +56 -56
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/415.fat.min.js +2 -2
- package/es5/415.js +69 -5
- package/es5/415.min.js +2 -2
- package/es5/5.fat.min.js +1 -1
- package/es5/5.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +3796 -3758
- 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 +12 -12
- 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 +59 -59
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/esm/core/constants.d.ts +7 -0
- package/esm/core/constants.js +31 -11
- package/esm/core/helpers/utils/append-script.js +1 -1
- package/esm/core/plugin/helpers/load.js +2 -0
- package/esm/core/view/view.d.ts +4 -0
- package/esm/core/view/view.js +10 -1
- package/esm/langs/ar.d.ts +1 -0
- package/esm/langs/ar.js +4 -1
- package/esm/langs/cs_cz.js +2 -0
- package/esm/langs/de.d.ts +1 -0
- package/esm/langs/de.js +4 -1
- package/esm/langs/en.js +2 -0
- package/esm/langs/es.d.ts +1 -0
- package/esm/langs/es.js +4 -1
- package/esm/langs/fa.js +3 -1
- package/esm/langs/fi.d.ts +1 -0
- package/esm/langs/fi.js +3 -1
- package/esm/langs/fr.d.ts +4 -0
- package/esm/langs/fr.js +6 -1
- package/esm/langs/he.d.ts +1 -0
- package/esm/langs/he.js +3 -1
- package/esm/langs/hu.d.ts +1 -0
- package/esm/langs/hu.js +3 -1
- package/esm/langs/id.js +1 -0
- package/esm/langs/it.d.ts +1 -0
- package/esm/langs/it.js +3 -1
- package/esm/langs/ja.d.ts +1 -0
- package/esm/langs/ja.js +3 -1
- package/esm/langs/ko.js +1 -0
- package/esm/langs/mn.d.ts +1 -0
- package/esm/langs/mn.js +3 -1
- package/esm/langs/nl.d.ts +1 -0
- package/esm/langs/nl.js +3 -1
- package/esm/langs/no.d.ts +22 -0
- package/esm/langs/no.js +27 -1
- package/esm/langs/pl.d.ts +1 -0
- package/esm/langs/pl.js +3 -1
- package/esm/langs/pt_br.d.ts +1 -0
- package/esm/langs/pt_br.js +3 -1
- package/esm/langs/ru.js +1 -0
- package/esm/langs/sv.js +231 -0
- package/esm/langs/tr.d.ts +1 -0
- package/esm/langs/tr.js +3 -1
- package/esm/langs/ua.js +1 -0
- package/esm/langs/zh_cn.d.ts +1 -0
- package/esm/langs/zh_cn.js +3 -1
- package/esm/langs/zh_tw.d.ts +2 -0
- package/esm/langs/zh_tw.js +4 -1
- package/esm/modules/uploader/helpers/data-uri-to-blob.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.js +2 -2
- package/esm/types/view.d.ts +6 -1
- package/package.json +1 -1
- package/types/core/constants.d.ts +7 -0
- package/types/core/view/view.d.ts +4 -0
- package/types/langs/ar.d.ts +1 -0
- package/types/langs/de.d.ts +1 -0
- package/types/langs/es.d.ts +1 -0
- package/types/langs/fi.d.ts +1 -0
- package/types/langs/fr.d.ts +4 -0
- package/types/langs/he.d.ts +1 -0
- package/types/langs/hu.d.ts +1 -0
- package/types/langs/it.d.ts +1 -0
- package/types/langs/ja.d.ts +1 -0
- package/types/langs/mn.d.ts +1 -0
- package/types/langs/nl.d.ts +1 -0
- package/types/langs/no.d.ts +22 -0
- package/types/langs/pl.d.ts +1 -0
- package/types/langs/pt_br.d.ts +1 -0
- package/types/langs/tr.d.ts +1 -0
- package/types/langs/zh_cn.d.ts +1 -0
- package/types/langs/zh_tw.d.ts +2 -0
- package/types/types/view.d.ts +6 -1
package/esm/langs/zh_tw.d.ts
CHANGED
package/esm/langs/zh_tw.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
// Chinese Traditional (繁體中文)
|
|
7
8
|
export default {
|
|
8
9
|
'Type something': '輸入一些內容',
|
|
9
10
|
Advanced: '進階',
|
|
@@ -218,5 +219,7 @@ export default {
|
|
|
218
219
|
'Find Previous': '尋找上一個',
|
|
219
220
|
'Find Next': '尋找下一個',
|
|
220
221
|
'Insert className': '插入 class 名稱',
|
|
221
|
-
'Press Alt for custom resizing': '按住 Alt 以調整自訂大小'
|
|
222
|
+
'Press Alt for custom resizing': '按住 Alt 以調整自訂大小',
|
|
223
|
+
Edit: '編輯',
|
|
224
|
+
'License: %s': '許可證: %s'
|
|
222
225
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { IS_INLINE } from "../../../../../core/constants.js";
|
|
7
7
|
import { Dom } from "../../../../../core/dom/dom.js";
|
|
8
|
-
import {
|
|
8
|
+
import { trimInv } from "../../../../../core/helpers/string/trim.js";
|
|
9
9
|
/**
|
|
10
10
|
* @private
|
|
11
11
|
*/
|
|
@@ -34,6 +34,6 @@ function isRemovableNode(jodit, node, current, allow, deny) {
|
|
|
34
34
|
return (Dom.isElement(node) &&
|
|
35
35
|
node.nodeName.match(IS_INLINE) != null &&
|
|
36
36
|
!Dom.isTemporary(node) &&
|
|
37
|
-
|
|
37
|
+
trimInv(node.innerHTML).length === 0 &&
|
|
38
38
|
(current == null || !Dom.isOrContains(node, current)));
|
|
39
39
|
}
|
package/esm/types/view.d.ts
CHANGED
|
@@ -42,7 +42,11 @@ interface IViewOptions extends ILanguageOptions, IToolbarOptions {
|
|
|
42
42
|
cache?: boolean;
|
|
43
43
|
getIcon?: (name: string, clearName: string) => CanUndef<string>;
|
|
44
44
|
headerButtons?: string | Array<IControlType | string | ButtonsGroup>;
|
|
45
|
-
basePath?: string;
|
|
45
|
+
readonly basePath?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Plugin autoloader should load minified version of the file
|
|
48
|
+
*/
|
|
49
|
+
readonly minified?: boolean;
|
|
46
50
|
theme?: string;
|
|
47
51
|
defaultTimeout?: number;
|
|
48
52
|
disabled?: boolean;
|
|
@@ -71,6 +75,7 @@ interface IViewBased<T = IViewOptions> extends IContainer, IComponent, IMods, IE
|
|
|
71
75
|
*/
|
|
72
76
|
readonly id: string;
|
|
73
77
|
readonly basePath: string;
|
|
78
|
+
readonly minified: boolean;
|
|
74
79
|
readonly isLocked: boolean;
|
|
75
80
|
isLockedNotBy(name: string): boolean;
|
|
76
81
|
lock(name?: string): boolean;
|
package/package.json
CHANGED
|
@@ -130,7 +130,14 @@ export declare const INSERT_ONLY_TEXT = "insert_only_text";
|
|
|
130
130
|
export declare const SAFE_COUNT_CHANGE_CALL = 10;
|
|
131
131
|
export declare const IS_MAC: boolean;
|
|
132
132
|
export declare const KEY_ALIASES: IDictionary<string>;
|
|
133
|
+
/**
|
|
134
|
+
* Path to the current script
|
|
135
|
+
*/
|
|
133
136
|
export declare const BASE_PATH: string;
|
|
137
|
+
/**
|
|
138
|
+
* Current script is minified
|
|
139
|
+
*/
|
|
140
|
+
export declare const BASE_PATH_IS_MIN: boolean;
|
|
134
141
|
export declare const TEMP_ATTR = "data-jodit-temp";
|
|
135
142
|
export declare const lang: IDictionary<IDictionary<string>>;
|
|
136
143
|
export declare const CLIPBOARD_ID = "clipboard";
|
|
@@ -31,6 +31,10 @@ export declare abstract class View extends Component implements IViewBased, Mods
|
|
|
31
31
|
* Get a path for loading extra staff
|
|
32
32
|
*/
|
|
33
33
|
get basePath(): string;
|
|
34
|
+
/**
|
|
35
|
+
* Plugin autoloader should load minified version of the file
|
|
36
|
+
*/
|
|
37
|
+
get minified(): boolean;
|
|
34
38
|
static readonly ES: 'es5' | 'es2015' | 'es2018' | 'es2021';
|
|
35
39
|
static readonly version: string;
|
|
36
40
|
static readonly esNext: boolean;
|
package/types/langs/ar.d.ts
CHANGED
package/types/langs/de.d.ts
CHANGED
package/types/langs/es.d.ts
CHANGED
package/types/langs/fi.d.ts
CHANGED
package/types/langs/fr.d.ts
CHANGED
package/types/langs/he.d.ts
CHANGED
package/types/langs/hu.d.ts
CHANGED
package/types/langs/it.d.ts
CHANGED
package/types/langs/ja.d.ts
CHANGED
package/types/langs/mn.d.ts
CHANGED
package/types/langs/nl.d.ts
CHANGED
package/types/langs/no.d.ts
CHANGED
|
@@ -196,5 +196,27 @@ declare const _exports: {
|
|
|
196
196
|
'Copy selection': string;
|
|
197
197
|
'Paste from clipboard': string;
|
|
198
198
|
Find: string;
|
|
199
|
+
'Embed code': string;
|
|
200
|
+
Edit: string;
|
|
201
|
+
All: string;
|
|
202
|
+
'License: %s': string;
|
|
203
|
+
'You can only edit your own images. Download this image on the host?': string;
|
|
204
|
+
'The image has been successfully uploaded to the host!': string;
|
|
205
|
+
'There are no files': string;
|
|
206
|
+
Rename: string;
|
|
207
|
+
'Enter new name': string;
|
|
208
|
+
download: string;
|
|
209
|
+
"Your browser doesn't support direct access to the clipboard.": string;
|
|
210
|
+
copy: string;
|
|
211
|
+
'Border radius': string;
|
|
212
|
+
Apply: string;
|
|
213
|
+
'Please fill out this field': string;
|
|
214
|
+
'Please enter a web address': string;
|
|
215
|
+
Default: string;
|
|
216
|
+
Circle: string;
|
|
217
|
+
Dot: string;
|
|
218
|
+
Quadrate: string;
|
|
219
|
+
'Find Previous': string;
|
|
220
|
+
'Find Next': string;
|
|
199
221
|
};
|
|
200
222
|
export = _exports;
|
package/types/langs/pl.d.ts
CHANGED
package/types/langs/pt_br.d.ts
CHANGED
package/types/langs/tr.d.ts
CHANGED
package/types/langs/zh_cn.d.ts
CHANGED
package/types/langs/zh_tw.d.ts
CHANGED
package/types/types/view.d.ts
CHANGED
|
@@ -42,7 +42,11 @@ interface IViewOptions extends ILanguageOptions, IToolbarOptions {
|
|
|
42
42
|
cache?: boolean;
|
|
43
43
|
getIcon?: (name: string, clearName: string) => CanUndef<string>;
|
|
44
44
|
headerButtons?: string | Array<IControlType | string | ButtonsGroup>;
|
|
45
|
-
basePath?: string;
|
|
45
|
+
readonly basePath?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Plugin autoloader should load minified version of the file
|
|
48
|
+
*/
|
|
49
|
+
readonly minified?: boolean;
|
|
46
50
|
theme?: string;
|
|
47
51
|
defaultTimeout?: number;
|
|
48
52
|
disabled?: boolean;
|
|
@@ -71,6 +75,7 @@ interface IViewBased<T = IViewOptions> extends IContainer, IComponent, IMods, IE
|
|
|
71
75
|
*/
|
|
72
76
|
readonly id: string;
|
|
73
77
|
readonly basePath: string;
|
|
78
|
+
readonly minified: boolean;
|
|
74
79
|
readonly isLocked: boolean;
|
|
75
80
|
isLockedNotBy(name: string): boolean;
|
|
76
81
|
lock(name?: string): boolean;
|