grapesjs-preset-newsletter
grapesjs-preset-newsletter copied to clipboard
Angular Optimised Build Fix
This is related to #57
I have fixed it by making toggleImagesCommand similar to openImportCommand. The issue is probably due to strict standards of optimise mode which doesn't allow using returned value as function unless it is actually function.
Using export instead of define is another inconsistency which is fixed