jodit 4.2.17 → 4.2.19
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 +26 -5
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +5 -16
- package/es2015/jodit.min.js +2 -2
- 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.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +5 -16
- package/es2018/jodit.min.js +2 -2
- 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 +1 -1
- 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 +5 -16
- package/es2021/jodit.min.js +2 -2
- 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 +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +5 -16
- package/es2021.en/jodit.min.js +2 -2
- 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 +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +5 -16
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- 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/esm/core/constants.js +1 -1
- package/esm/core/helpers/utils/append-script.js +2 -0
- package/esm/modules/toolbar/collection/collection.js +1 -1
- package/esm/plugins/hotkeys/config.d.ts +13 -0
- package/esm/plugins/hotkeys/config.js +0 -13
- package/package.json +1 -1
- package/types/plugins/hotkeys/config.d.ts +13 -0
package/esm/core/constants.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
export const APP_VERSION = "4.2.
|
|
6
|
+
export const APP_VERSION = "4.2.19";
|
|
7
7
|
// prettier-ignore
|
|
8
8
|
export const ES = "es2020";
|
|
9
9
|
export const IS_ES_MODERN = true;
|
|
@@ -116,7 +116,7 @@ __decorate([
|
|
|
116
116
|
autobind
|
|
117
117
|
], ToolbarCollection.prototype, "__immediateUpdate", null);
|
|
118
118
|
__decorate([
|
|
119
|
-
debounce()
|
|
119
|
+
debounce(ctx => ctx.j.defaultTimeout, true)
|
|
120
120
|
], ToolbarCollection.prototype, "update", null);
|
|
121
121
|
__decorate([
|
|
122
122
|
hook('ready')
|
|
@@ -9,6 +9,19 @@
|
|
|
9
9
|
import type { IDictionary } from "../../types";
|
|
10
10
|
declare module 'jodit/config' {
|
|
11
11
|
interface Config {
|
|
12
|
+
/**
|
|
13
|
+
* You can redefine hotkeys for some command
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```js
|
|
17
|
+
* const jodit = Jodit.make('#editor', {
|
|
18
|
+
* commandToHotkeys: {
|
|
19
|
+
* bold: 'ctrl+shift+b',
|
|
20
|
+
* italic: ['ctrl+i', 'ctrl+b'],
|
|
21
|
+
* }
|
|
22
|
+
* })
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
12
25
|
commandToHotkeys: IDictionary<string | string[]>;
|
|
13
26
|
}
|
|
14
27
|
}
|
|
@@ -4,19 +4,6 @@
|
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
6
|
import { Config } from "../../config.js";
|
|
7
|
-
/**
|
|
8
|
-
* You can redefine hotkeys for some command
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```js
|
|
12
|
-
* var jodit = Jodit.make('#editor', {
|
|
13
|
-
* commandToHotkeys: {
|
|
14
|
-
* bold: 'ctrl+shift+b',
|
|
15
|
-
* italic: ['ctrl+i', 'ctrl+b'],
|
|
16
|
-
* }
|
|
17
|
-
* })
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
7
|
Config.prototype.commandToHotkeys = {
|
|
21
8
|
removeFormat: ['ctrl+shift+m', 'cmd+shift+m'],
|
|
22
9
|
insertOrderedList: ['ctrl+shift+7', 'cmd+shift+7'],
|
package/package.json
CHANGED
|
@@ -9,6 +9,19 @@
|
|
|
9
9
|
import type { IDictionary } from "../../types";
|
|
10
10
|
declare module 'jodit/config' {
|
|
11
11
|
interface Config {
|
|
12
|
+
/**
|
|
13
|
+
* You can redefine hotkeys for some command
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```js
|
|
17
|
+
* const jodit = Jodit.make('#editor', {
|
|
18
|
+
* commandToHotkeys: {
|
|
19
|
+
* bold: 'ctrl+shift+b',
|
|
20
|
+
* italic: ['ctrl+i', 'ctrl+b'],
|
|
21
|
+
* }
|
|
22
|
+
* })
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
12
25
|
commandToHotkeys: IDictionary<string | string[]>;
|
|
13
26
|
}
|
|
14
27
|
}
|