jodit 4.6.12 → 4.6.14
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 +14 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +16 -7
- 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 +20 -8
- 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 -8
- 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 -8
- 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 +16 -7
- 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/core/constants.js +1 -1
- package/esm/core/selection/style/transactions.js +15 -4
- package/esm/plugins/copy-format/copy-format.js +3 -2
- package/package.json +1 -1
package/es2018/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.6.
|
|
4
|
+
* Version: v4.6.14
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -8389,7 +8389,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8389
8389
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
8390
8390
|
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
8391
8391
|
*/
|
|
8392
|
-
const APP_VERSION = "4.6.
|
|
8392
|
+
const APP_VERSION = "4.6.14";
|
|
8393
8393
|
// prettier-ignore
|
|
8394
8394
|
const ES = "es2018";
|
|
8395
8395
|
const IS_ES_MODERN = true;
|
|
@@ -17101,16 +17101,27 @@ const transactions = {
|
|
|
17101
17101
|
},
|
|
17102
17102
|
[states.EXTRACT]: {
|
|
17103
17103
|
exec(value) {
|
|
17104
|
+
var _a;
|
|
17104
17105
|
const { element, jodit, style } = value;
|
|
17105
17106
|
const suit = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__/* .suitableClosest */ .$s)(style, element, jodit.editor);
|
|
17106
17107
|
void 0;
|
|
17107
|
-
|
|
17108
|
-
|
|
17108
|
+
// If we're applying inline styles to a block element, don't split the block
|
|
17109
|
+
const isApplyingInlineStyle = !style.elementIsBlock && ((_a = style.options.attributes) === null || _a === void 0 ? void 0 : _a.style);
|
|
17110
|
+
const shouldNotSplitBlock = isApplyingInlineStyle && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__/* .Dom */ .J.isBlock(suit);
|
|
17111
|
+
if (!shouldNotSplitBlock) {
|
|
17112
|
+
if (!style.elementIsBlock) {
|
|
17113
|
+
(0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_4__/* .extractSelectedPart */ .yP)(suit, element, jodit);
|
|
17114
|
+
}
|
|
17115
|
+
return {
|
|
17116
|
+
...value,
|
|
17117
|
+
element: suit,
|
|
17118
|
+
next: states.ELEMENT
|
|
17119
|
+
};
|
|
17109
17120
|
}
|
|
17121
|
+
// Create a new wrapper instead of splitting the block
|
|
17110
17122
|
return {
|
|
17111
17123
|
...value,
|
|
17112
|
-
|
|
17113
|
-
next: states.ELEMENT
|
|
17124
|
+
next: states.WRAP
|
|
17114
17125
|
};
|
|
17115
17126
|
}
|
|
17116
17127
|
},
|
|
@@ -17703,9 +17714,11 @@ const pluginKey = 'copy-format';
|
|
|
17703
17714
|
* Plug-in copy and paste formatting from one element to another
|
|
17704
17715
|
*/
|
|
17705
17716
|
const copyStyles = [
|
|
17717
|
+
'lineHeight',
|
|
17706
17718
|
'fontWeight',
|
|
17707
17719
|
'fontStyle',
|
|
17708
17720
|
'fontSize',
|
|
17721
|
+
'fontFamily',
|
|
17709
17722
|
'color',
|
|
17710
17723
|
'margin',
|
|
17711
17724
|
'padding',
|
|
@@ -17714,8 +17727,7 @@ const copyStyles = [
|
|
|
17714
17727
|
'borderColor',
|
|
17715
17728
|
'borderRadius',
|
|
17716
17729
|
'backgroundColor',
|
|
17717
|
-
'textDecorationLine'
|
|
17718
|
-
'fontFamily'
|
|
17730
|
+
'textDecorationLine'
|
|
17719
17731
|
];
|
|
17720
17732
|
const getStyle = (editor, key, box, defaultStyles) => {
|
|
17721
17733
|
let result = (0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__/* .css */ .A)(box, key);
|