jodit 4.6.13 → 4.6.15
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 +18 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +19 -6
- 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 +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 +19 -6
- 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 +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 +19 -6
- 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 +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 +19 -6
- 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 +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/415.fat.min.js +1 -1
- package/es5/415.min.js +1 -1
- 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 +19 -6
- 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 +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/esm/config.d.ts +1 -0
- package/esm/core/constants.js +1 -1
- package/esm/plugins/copy-format/copy-format.js +3 -2
- package/esm/plugins/table/config.d.ts +1 -0
- package/esm/plugins/table/config.js +14 -2
- package/package.json +1 -1
- package/types/config.d.ts +1 -0
- package/types/plugins/table/config.d.ts +1 -0
package/esm/config.d.ts
CHANGED
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-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
export const APP_VERSION = "4.6.
|
|
6
|
+
export const APP_VERSION = "4.6.15";
|
|
7
7
|
// prettier-ignore
|
|
8
8
|
export const ES = "es2020";
|
|
9
9
|
export const IS_ES_MODERN = true;
|
|
@@ -15,9 +15,11 @@ const pluginKey = 'copy-format';
|
|
|
15
15
|
* Plug-in copy and paste formatting from one element to another
|
|
16
16
|
*/
|
|
17
17
|
const copyStyles = [
|
|
18
|
+
'lineHeight',
|
|
18
19
|
'fontWeight',
|
|
19
20
|
'fontStyle',
|
|
20
21
|
'fontSize',
|
|
22
|
+
'fontFamily',
|
|
21
23
|
'color',
|
|
22
24
|
'margin',
|
|
23
25
|
'padding',
|
|
@@ -26,8 +28,7 @@ const copyStyles = [
|
|
|
26
28
|
'borderColor',
|
|
27
29
|
'borderRadius',
|
|
28
30
|
'backgroundColor',
|
|
29
|
-
'textDecorationLine'
|
|
30
|
-
'fontFamily'
|
|
31
|
+
'textDecorationLine'
|
|
31
32
|
];
|
|
32
33
|
const getStyle = (editor, key, box, defaultStyles) => {
|
|
33
34
|
let result = css(box, key);
|
|
@@ -10,6 +10,7 @@ import { Icon } from "../../core/ui/icon.js";
|
|
|
10
10
|
import { Config } from "../../config.js";
|
|
11
11
|
import tableIcon from "./table.svg.js";
|
|
12
12
|
Config.prototype.table = {
|
|
13
|
+
splitBlockOnInsertTable: true,
|
|
13
14
|
selectionCellStyle: 'border: 1px double #1e88e5 !important;',
|
|
14
15
|
useExtraClassesOptions: false
|
|
15
16
|
};
|
|
@@ -130,8 +131,19 @@ Config.prototype.controls.table = {
|
|
|
130
131
|
else {
|
|
131
132
|
if (block) {
|
|
132
133
|
const fake = crt.text('\n');
|
|
133
|
-
|
|
134
|
-
|
|
134
|
+
if (!editor.o.table.splitBlockOnInsertTable) {
|
|
135
|
+
Dom.after(block, fake);
|
|
136
|
+
Dom.after(fake, table);
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
const range = editor.s.range;
|
|
140
|
+
range.collapse(false);
|
|
141
|
+
range.insertNode(fake);
|
|
142
|
+
range.collapse(false);
|
|
143
|
+
editor.s.selectRange(range);
|
|
144
|
+
const firstPart = editor.s.splitSelection(block, fake);
|
|
145
|
+
Dom.after(firstPart, table);
|
|
146
|
+
}
|
|
135
147
|
}
|
|
136
148
|
else {
|
|
137
149
|
editor.s.insertNode(table, false);
|
package/package.json
CHANGED
package/types/config.d.ts
CHANGED