jodit 4.12.12 → 4.12.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 +12 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +3 -3
- package/es2015/jodit.js +16 -2
- package/es2015/jodit.min.js +3 -3
- 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.fat.min.js +3 -3
- package/es2018/jodit.min.js +3 -3
- package/es2018/plugins/debug/debug.min.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 +3 -3
- package/es2021/jodit.js +16 -2
- package/es2021/jodit.min.js +3 -3
- 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 +3 -3
- package/es2021.en/jodit.js +16 -2
- package/es2021.en/jodit.min.js +3 -3
- 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/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +16 -2
- 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/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/plugins/backspace/cases/check-join-neighbors.js +8 -0
- package/esm/plugins/backspace/cases/check-remove-char.js +8 -0
- package/package.json +1 -1
package/es5/polyfills.fat.min.js
CHANGED
package/es5/polyfills.js
CHANGED
package/es5/polyfills.min.js
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-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
export const APP_VERSION = "4.12.
|
|
6
|
+
export const APP_VERSION = "4.12.14";
|
|
7
7
|
// prettier-ignore
|
|
8
8
|
export const ES = "es2020";
|
|
9
9
|
export const IS_ES_MODERN = true;
|
|
@@ -22,6 +22,14 @@ export function checkJoinNeighbors(jodit, fakeNode, backspace) {
|
|
|
22
22
|
if (Dom.isElement(mainClosestBox) &&
|
|
23
23
|
Dom.isContentEditable(mainClosestBox, jodit.editor)) {
|
|
24
24
|
const sibling = Dom.findNotEmptySibling(mainClosestBox, backspace);
|
|
25
|
+
// A line break before the cursor is a single unit: remove it instead of
|
|
26
|
+
// merging the current element into the (void) `<br>`, which used to move
|
|
27
|
+
// the whole element's content into the `<br>` and delete it (#1282).
|
|
28
|
+
if (Dom.isTag(sibling, 'br')) {
|
|
29
|
+
Dom.safeRemove(sibling);
|
|
30
|
+
jodit.s.setCursorBefore(fakeNode);
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
25
33
|
if (sibling &&
|
|
26
34
|
(checkMoveListContent(jodit, mainClosestBox, sibling, backspace) ||
|
|
27
35
|
moveContentAndRemoveEmpty(jodit, mainClosestBox, sibling, backspace))) {
|
|
@@ -80,6 +80,14 @@ function getNextInlineSibling(sibling, backspace, root) {
|
|
|
80
80
|
let nextSibling = Dom.sibling(sibling, backspace);
|
|
81
81
|
if (!nextSibling && sibling.parentNode && sibling.parentNode !== root) {
|
|
82
82
|
nextSibling = findMostNestedNeighbor(sibling, !backspace, root, true);
|
|
83
|
+
// Do not cross a list-item boundary. At the start of a list item the
|
|
84
|
+
// neighbor can be the text of the parent/previous item; deleting a char
|
|
85
|
+
// there is wrong — the list cases must handle the outdent/merge (#1277).
|
|
86
|
+
if (nextSibling &&
|
|
87
|
+
Dom.closest(sibling, 'li', root) !==
|
|
88
|
+
Dom.closest(nextSibling, 'li', root)) {
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
83
91
|
}
|
|
84
92
|
return nextSibling;
|
|
85
93
|
}
|