jodit 4.12.11 → 4.12.13
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 +20 -5
- 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 +20 -5
- 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 +20 -5
- 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 +20 -5
- 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/fullsize/fullsize.js +10 -3
- 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.13";
|
|
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))) {
|
|
@@ -22,19 +22,26 @@ export function fullsize(editor) {
|
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
24
|
if (isEnabled) {
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
// Save the original size only once, when entering fullsize.
|
|
26
|
+
// Otherwise a window resize while in fullsize would overwrite it
|
|
27
|
+
// with the current (fullscreen) size, so exiting fullsize would
|
|
28
|
+
// restore the wrong dimensions (#1278).
|
|
29
|
+
if (!wasToggled) {
|
|
30
|
+
oldHeight = css(container, 'height', true);
|
|
31
|
+
oldWidth = css(container, 'width', true);
|
|
32
|
+
wasToggled = true;
|
|
33
|
+
}
|
|
27
34
|
css(container, {
|
|
28
35
|
height: editor.ow.innerHeight,
|
|
29
36
|
width: editor.ow.innerWidth
|
|
30
37
|
});
|
|
31
|
-
wasToggled = true;
|
|
32
38
|
}
|
|
33
39
|
else if (wasToggled) {
|
|
34
40
|
css(container, {
|
|
35
41
|
height: oldHeight || 'auto',
|
|
36
42
|
width: oldWidth || 'auto'
|
|
37
43
|
});
|
|
44
|
+
wasToggled = false;
|
|
38
45
|
}
|
|
39
46
|
},
|
|
40
47
|
/**
|