From 6a3d7d0039e9c7eebaa30c9d864c526378a82cdb Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Mon, 29 Aug 2022 16:39:37 +0200 Subject: [PATCH] Use props --- src/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 646d60d..a54e954 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,7 +31,7 @@ export type PluginOptions = { * Custom CSS styles for the component. This will replace the default one. * @default '' */ - style?: string, + style?: string, /** * Additional CSS styles for the component. These will be appended to the default one. @@ -114,7 +114,7 @@ const plugin: grapesjs.Plugin = (editor, opts = {}) => { ...opts, }; - const { block } = options; + const { block, props } = options; const id = options.id!; const label = options.label!; const pfx = options.classPrefix!; @@ -258,6 +258,7 @@ const plugin: grapesjs.Plugin = (editor, opts = {}) => { display: inline-block; } `, + ...props, }, }, });