import { BlockProperties, ComponentDefinition, Plugin } from 'grapesjs'; export type PluginOptions = { /** * Object to extend the default custom code block. Pass a falsy value to avoid adding the block * @example * { label: 'Custom Code', category: 'Extra', ... } */ blockCustomCode?: Partial; /** * Object to extend the default custom code properties. * @example * { name: 'Custom Code', droppable: false, ... } */ propsCustomCode?: ComponentDefinition; /** * Object to extend the default component's toolbar button for the code. Pass a falsy value to avoid adding the button * @example * { label: '', attributes: { title: 'Open custom code' } } */ toolbarBtnCustomCode?: Record; /** * Content to show when the custom code contains `