@ckeditor/ckeditor5-image 47.7.1-alpha.0 → 47.7.2-alpha.0
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/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
- package/src/image/converters.js +1 -1
- package/src/image/imageloadobserver.js +1 -1
- package/src/imageresize/imagecustomresizeui.js +1 -1
- package/src/imageresize/ui/imagecustomresizeformview.js +1 -1
- package/src/imagestyle/imagestyleui.js +2 -1
- package/src/imagetextalternative/imagetextalternativeui.js +1 -1
- package/src/imagetextalternative/ui/textalternativeformview.js +1 -1
- package/theme/image.css +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-image",
|
|
3
|
-
"version": "47.7.
|
|
3
|
+
"version": "47.7.2-alpha.0",
|
|
4
4
|
"description": "Image feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ckeditor/ckeditor5-clipboard": "47.7.
|
|
17
|
-
"@ckeditor/ckeditor5-core": "47.7.
|
|
18
|
-
"@ckeditor/ckeditor5-engine": "47.7.
|
|
19
|
-
"@ckeditor/ckeditor5-icons": "47.7.
|
|
20
|
-
"@ckeditor/ckeditor5-typing": "47.7.
|
|
21
|
-
"@ckeditor/ckeditor5-ui": "47.7.
|
|
22
|
-
"@ckeditor/ckeditor5-undo": "47.7.
|
|
23
|
-
"@ckeditor/ckeditor5-upload": "47.7.
|
|
24
|
-
"@ckeditor/ckeditor5-utils": "47.7.
|
|
25
|
-
"@ckeditor/ckeditor5-widget": "47.7.
|
|
26
|
-
"ckeditor5": "47.7.
|
|
16
|
+
"@ckeditor/ckeditor5-clipboard": "47.7.2-alpha.0",
|
|
17
|
+
"@ckeditor/ckeditor5-core": "47.7.2-alpha.0",
|
|
18
|
+
"@ckeditor/ckeditor5-engine": "47.7.2-alpha.0",
|
|
19
|
+
"@ckeditor/ckeditor5-icons": "47.7.2-alpha.0",
|
|
20
|
+
"@ckeditor/ckeditor5-typing": "47.7.2-alpha.0",
|
|
21
|
+
"@ckeditor/ckeditor5-ui": "47.7.2-alpha.0",
|
|
22
|
+
"@ckeditor/ckeditor5-undo": "47.7.2-alpha.0",
|
|
23
|
+
"@ckeditor/ckeditor5-upload": "47.7.2-alpha.0",
|
|
24
|
+
"@ckeditor/ckeditor5-utils": "47.7.2-alpha.0",
|
|
25
|
+
"@ckeditor/ckeditor5-widget": "47.7.2-alpha.0",
|
|
26
|
+
"ckeditor5": "47.7.2-alpha.0",
|
|
27
27
|
"es-toolkit": "1.39.5"
|
|
28
28
|
},
|
|
29
29
|
"author": "CKSource (http://cksource.com/)",
|
package/src/image/converters.js
CHANGED
|
@@ -185,7 +185,7 @@ export function downcastSourcesAttribute(imageUtils) {
|
|
|
185
185
|
viewElement = parentElement;
|
|
186
186
|
}
|
|
187
187
|
const hasPictureElement = imgElement.parent.is('element', 'picture');
|
|
188
|
-
// Reuse existing <picture> element (ckeditor5
|
|
188
|
+
// Reuse existing <picture> element (https://github.com/ckeditor/ckeditor5/issues/17192) or create a new one.
|
|
189
189
|
const pictureElement = hasPictureElement ? imgElement.parent : viewWriter.createContainerElement('picture', null);
|
|
190
190
|
if (!hasPictureElement) {
|
|
191
191
|
viewWriter.insert(viewWriter.createPositionBefore(imgElement), pictureElement);
|
|
@@ -27,7 +27,7 @@ export class ImageLoadObserver extends Observer {
|
|
|
27
27
|
if (domElement.tagName == 'IMG') {
|
|
28
28
|
this._fireEvents(domEvent);
|
|
29
29
|
}
|
|
30
|
-
// Use capture phase for better performance (
|
|
30
|
+
// Use capture phase for better performance (https://github.com/ckeditor/ckeditor5/issues/4504).
|
|
31
31
|
}, { useCapture: true });
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
@@ -48,7 +48,7 @@ export class ImageCustomResizeUI extends Plugin {
|
|
|
48
48
|
*/
|
|
49
49
|
destroy() {
|
|
50
50
|
super.destroy();
|
|
51
|
-
// Destroy created UI components as they are not automatically destroyed (see ckeditor5
|
|
51
|
+
// Destroy created UI components as they are not automatically destroyed (see https://github.com/ckeditor/ckeditor5/issues/1341).
|
|
52
52
|
if (this._form) {
|
|
53
53
|
this._form.destroy();
|
|
54
54
|
}
|
|
@@ -9,7 +9,7 @@ import { ButtonView, FocusCycler, FormHeaderView, FormRowView, LabeledFieldView,
|
|
|
9
9
|
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import { IconPreviousArrow } from 'ckeditor5/src/icons.js';
|
|
11
11
|
import '../../../theme/imagecustomresizeform.css';
|
|
12
|
-
// See:
|
|
12
|
+
// See: https://github.com/ckeditor/ckeditor5/issues/8833.
|
|
13
13
|
// eslint-disable-next-line ckeditor5-rules/ckeditor-imports
|
|
14
14
|
import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
|
|
15
15
|
// eslint-disable-next-line ckeditor5-rules/ckeditor-imports
|
|
@@ -139,7 +139,8 @@ export class ImageStyleUI extends Plugin {
|
|
|
139
139
|
dropdownView.bind('isEnabled')
|
|
140
140
|
.toMany(buttonViews, 'isEnabled', (...areEnabled) => areEnabled.some(identity));
|
|
141
141
|
// Focus the editable after executing the command.
|
|
142
|
-
// Overrides a default behaviour where the focus is moved to the dropdown button
|
|
142
|
+
// Overrides a default behaviour where the focus is moved to the dropdown button.
|
|
143
|
+
// See https://github.com/ckeditor/ckeditor5/issues/12125.
|
|
143
144
|
this.listenTo(dropdownView, 'execute', () => {
|
|
144
145
|
this.editor.editing.view.focus();
|
|
145
146
|
});
|
|
@@ -53,7 +53,7 @@ export class ImageTextAlternativeUI extends Plugin {
|
|
|
53
53
|
*/
|
|
54
54
|
destroy() {
|
|
55
55
|
super.destroy();
|
|
56
|
-
// Destroy created UI components as they are not automatically destroyed (see ckeditor5
|
|
56
|
+
// Destroy created UI components as they are not automatically destroyed (see https://github.com/ckeditor/ckeditor5/issues/1341).
|
|
57
57
|
if (this._form) {
|
|
58
58
|
this._form.destroy();
|
|
59
59
|
}
|
|
@@ -9,7 +9,7 @@ import { ButtonView, FocusCycler, FormRowView, FormHeaderView, LabeledFieldView,
|
|
|
9
9
|
import { FocusTracker, KeystrokeHandler } from 'ckeditor5/src/utils.js';
|
|
10
10
|
import { IconPreviousArrow } from 'ckeditor5/src/icons.js';
|
|
11
11
|
import '../../../theme/textalternativeform.css';
|
|
12
|
-
// See:
|
|
12
|
+
// See: https://github.com/ckeditor/ckeditor5/issues/8833.
|
|
13
13
|
// eslint-disable-next-line ckeditor5-rules/ckeditor-imports
|
|
14
14
|
import '@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';
|
|
15
15
|
// eslint-disable-next-line ckeditor5-rules/ckeditor-imports
|
package/theme/image.css
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
min-width: 50px;
|
|
19
19
|
|
|
20
20
|
& img {
|
|
21
|
-
/* Prevent unnecessary margins caused by line-height (see
|
|
21
|
+
/* Prevent unnecessary margins caused by line-height (see https://github.com/ckeditor/ckeditor5/issues/44). */
|
|
22
22
|
display: block;
|
|
23
23
|
|
|
24
24
|
/* Center the image if its width is smaller than the content's width. */
|