jodit 4.12.10 → 4.12.12
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 +22 -8
- 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 +4 -4
- package/es2021/jodit.js +22 -8
- package/es2021/jodit.min.js +4 -4
- 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 +4 -4
- package/es2021.en/jodit.js +22 -8
- package/es2021.en/jodit.min.js +4 -4
- 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 +22 -8
- 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/core/selection/style/api/toggle-attributes.js +10 -3
- 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.12";
|
|
7
7
|
// prettier-ignore
|
|
8
8
|
export const ES = "es2020";
|
|
9
9
|
export const IS_ES_MODERN = true;
|
|
@@ -149,11 +149,18 @@ function getShadowRoot(jodit) {
|
|
|
149
149
|
* `strong -> fontWeight 700`
|
|
150
150
|
*/
|
|
151
151
|
function getNativeCSSValue(jodit, elm, key) {
|
|
152
|
+
const root = getShadowRoot(jodit);
|
|
153
|
+
// Reproduce the editor's inherited text color inside the isolated probe so
|
|
154
|
+
// that a value equal to the editor's *effective* default (not only the
|
|
155
|
+
// browser default black) is recognised. Without this, applying black after
|
|
156
|
+
// the default font color was changed was wrongly treated as a no-op (#1311).
|
|
157
|
+
const wrapper = jodit.create.element('div');
|
|
158
|
+
wrapper.style.color = css(jodit.editor, 'color');
|
|
152
159
|
const newElm = jodit.create.element(elm.tagName.toLowerCase());
|
|
153
160
|
newElm.style.cssText = elm.style.cssText;
|
|
154
|
-
|
|
155
|
-
root.appendChild(
|
|
161
|
+
wrapper.appendChild(newElm);
|
|
162
|
+
root.appendChild(wrapper);
|
|
156
163
|
const result = css(newElm, key);
|
|
157
|
-
Dom.safeRemove(
|
|
164
|
+
Dom.safeRemove(wrapper);
|
|
158
165
|
return result;
|
|
159
166
|
}
|
|
@@ -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
|
/**
|