@ckeditor/ckeditor5-image 43.3.1-alpha.0 → 44.0.0-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-image",
3
- "version": "43.3.1-alpha.0",
3
+ "version": "44.0.0-alpha.0",
4
4
  "description": "Image feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,16 +13,16 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-clipboard": "43.3.1-alpha.0",
17
- "@ckeditor/ckeditor5-core": "43.3.1-alpha.0",
18
- "@ckeditor/ckeditor5-engine": "43.3.1-alpha.0",
19
- "@ckeditor/ckeditor5-typing": "43.3.1-alpha.0",
20
- "@ckeditor/ckeditor5-ui": "43.3.1-alpha.0",
21
- "@ckeditor/ckeditor5-undo": "43.3.1-alpha.0",
22
- "@ckeditor/ckeditor5-upload": "43.3.1-alpha.0",
23
- "@ckeditor/ckeditor5-utils": "43.3.1-alpha.0",
24
- "@ckeditor/ckeditor5-widget": "43.3.1-alpha.0",
25
- "ckeditor5": "43.3.1-alpha.0",
16
+ "@ckeditor/ckeditor5-clipboard": "44.0.0-alpha.0",
17
+ "@ckeditor/ckeditor5-core": "44.0.0-alpha.0",
18
+ "@ckeditor/ckeditor5-engine": "44.0.0-alpha.0",
19
+ "@ckeditor/ckeditor5-typing": "44.0.0-alpha.0",
20
+ "@ckeditor/ckeditor5-ui": "44.0.0-alpha.0",
21
+ "@ckeditor/ckeditor5-undo": "44.0.0-alpha.0",
22
+ "@ckeditor/ckeditor5-upload": "44.0.0-alpha.0",
23
+ "@ckeditor/ckeditor5-utils": "44.0.0-alpha.0",
24
+ "@ckeditor/ckeditor5-widget": "44.0.0-alpha.0",
25
+ "ckeditor5": "44.0.0-alpha.0",
26
26
  "lodash-es": "4.17.21"
27
27
  },
28
28
  "author": "CKSource (http://cksource.com/)",
@@ -300,7 +300,12 @@ export default class ImageUploadEditing extends Plugin {
300
300
  }
301
301
  // Permanently remove image from insertion batch.
302
302
  model.enqueueChange({ isUndoable: false }, writer => {
303
- writer.remove(imageUploadElements.get(loader.id));
303
+ const node = imageUploadElements.get(loader.id);
304
+ // Handle situation when the image has been removed and then `abort` exception was thrown.
305
+ // See: https://github.com/cksource/ckeditor5-commercial/issues/6817
306
+ if (node && node.root.rootName !== '$graveyard') {
307
+ writer.remove(node);
308
+ }
304
309
  });
305
310
  clean();
306
311
  });