@ckeditor/ckeditor5-ckbox 43.1.1 → 43.2.0-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-ckbox",
3
- "version": "43.1.1",
3
+ "version": "43.2.0-alpha.0",
4
4
  "description": "CKBox integration for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -13,12 +13,12 @@
13
13
  "type": "module",
14
14
  "main": "src/index.js",
15
15
  "dependencies": {
16
- "@ckeditor/ckeditor5-core": "43.1.1",
17
- "@ckeditor/ckeditor5-engine": "43.1.1",
18
- "@ckeditor/ckeditor5-ui": "43.1.1",
19
- "@ckeditor/ckeditor5-upload": "43.1.1",
20
- "@ckeditor/ckeditor5-utils": "43.1.1",
21
- "ckeditor5": "43.1.1",
16
+ "@ckeditor/ckeditor5-core": "43.2.0-alpha.0",
17
+ "@ckeditor/ckeditor5-engine": "43.2.0-alpha.0",
18
+ "@ckeditor/ckeditor5-ui": "43.2.0-alpha.0",
19
+ "@ckeditor/ckeditor5-upload": "43.2.0-alpha.0",
20
+ "@ckeditor/ckeditor5-utils": "43.2.0-alpha.0",
21
+ "ckeditor5": "43.2.0-alpha.0",
22
22
  "blurhash": "2.0.5",
23
23
  "lodash-es": "4.17.21"
24
24
  },
@@ -288,6 +288,7 @@ export default class CKBoxImageEditCommand extends Command {
288
288
  editor.model.change(writer => {
289
289
  writer.setSelection(element, 'on');
290
290
  editor.execute('insertImage', {
291
+ imageType: element.is('element', 'imageInline') ? 'imageInline' : null,
291
292
  source: {
292
293
  src: imageFallbackUrl,
293
294
  sources: imageSources,
package/src/ckboxui.js CHANGED
@@ -54,7 +54,6 @@ export default class CKBoxUI extends Plugin {
54
54
  const locale = editor.locale;
55
55
  const view = new ButtonClass(locale);
56
56
  const command = editor.commands.get('ckbox');
57
- const t = locale.t;
58
57
  view.bind('isOn', 'isEnabled').to(command, 'value', 'isEnabled');
59
58
  view.on('execute', () => {
60
59
  editor.execute('ckbox');