Skip to content

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Jun 9, 2023
1 parent e68eea5 commit 7e537e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
4 changes: 2 additions & 2 deletions src/toggleImagesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Editor, Components } from 'grapesjs';
import { PluginOptions } from '.';

export default (editor: Editor, opts: Required<PluginOptions>) => {
return editor.Commands.add(opts.cmdTglImages, {
editor.Commands.add(opts.cmdTglImages, {
run(editor) {
const components = editor.getComponents();
this.toggleImages(components);
Expand Down Expand Up @@ -33,5 +33,5 @@ export default (editor: Editor, opts: Required<PluginOptions>) => {
this.toggleImages(component.components(), on);
});
},
});
});
};

0 comments on commit 7e537e9

Please sign in to comment.