Skip to content

Commit

Permalink
Remove legacy plugin registration
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Aug 27, 2022
1 parent a9f6852 commit 3b29fb1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import grapesjs from 'grapesjs';
import loadComponents from './components';
import loadBlocks from './blocks';
import {
countdownRef
} from './consts';
import { countdownRef } from './consts';

export default grapesjs.plugins.add('gjs-component-countdown', (editor, opts = {}) => {
const plugin = (editor, opts = {}) => {
let c = opts;

let defaults = {
Expand Down Expand Up @@ -56,5 +53,6 @@ export default grapesjs.plugins.add('gjs-component-countdown', (editor, opts = {

// Add components
loadBlocks(editor, c);
};

});
export default plugin;

0 comments on commit 3b29fb1

Please sign in to comment.