diff --git a/package-lock.json b/package-lock.json index d3cd002..25d48a5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "grapesjs-preset-newsletter", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index d88d1e7..e7ddff5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "grapesjs-preset-newsletter", - "version": "1.0.1", + "version": "1.0.2", "description": "GrapesJS preset configuration for the newsletter editor", "main": "dist/index.js", "files": [ diff --git a/src/toggleImagesCommand.ts b/src/toggleImagesCommand.ts index a23e95a..60a9796 100644 --- a/src/toggleImagesCommand.ts +++ b/src/toggleImagesCommand.ts @@ -2,7 +2,7 @@ import type { Editor, Components } from 'grapesjs'; import { PluginOptions } from '.'; export default (editor: Editor, opts: Required) => { - return editor.Commands.add(opts.cmdTglImages, { + editor.Commands.add(opts.cmdTglImages, { run(editor) { const components = editor.getComponents(); this.toggleImages(components); @@ -33,5 +33,5 @@ export default (editor: Editor, opts: Required) => { this.toggleImages(component.components(), on); }); }, -}); + }); };