Mautic Community Forums

FYI custom code block for grapesjs works good so far - instructions to add

In grapesjs plugin dir:

npm i grapesjs-custom-code

then
here

add

import grapesjscustomcode from 'grapesjs-custom-code';

on line 10

then in each

this.editor = grapesjs.init({

add to plugins

like
plugins: [grapesjswebpage, grapesjspostcss, grapesjsmautic, 'gjs-plugin-ckeditor',grapesjscustomcode],

Then build:
npm run build

It should be fine for all types of editors ie webpage, htmlemail and i think mjml

Works like a charm!