OK, this worked for me, but did expose a problem (at least in my install). Let me explain so this is all on record.
Remember, I created a Landing Page, and clicked Builder to edit it. The two templates I had available after a fresh 4.1.1 install were “Code Mode” and “Blank”. Regardless of which I chose, I got the legacy page builder with errors, inability to edit, or even click the Save or Close buttons.
I went into the database, in the pages
table, and saw the custom_html
field was blank. I pasted in the html content I had in a separate 2.8 install for the same landing page.
When I went back into the Mautic UI, I could now open the page, and I get the NEW editor. All works well for this page.
However:
The problem still exists if I create another landing page. I would need to go into the database and paste the HTML if I want it to work. So, I am assuming there is an issue in the theme? With that in mind, here is what I have in the config.json of the /mautic/themes/blank/config.json
:
{
"name": "Blank",
"author": "Mautic team",
"authorUrl": "https://mautic.org",
"builder": ["legacy", "grapesjsbuilder"],
"features": ["page", "email", "form"]
}
I am not sure if I should be seeing other themes, or where the “Code Mode” should be pulling from, or if I am even on the right track. But if I look at the config.json under each theme, the following themes have "page"
listed under "features":
Sunday, Skyline, Oxygen, Neopolitan. Nature, Mauve, Fresh - Wide, Fresh - Left, Fresh - Fixed, Fresh - Center, and Coffee
None of these, however, have "builder": ["legacy", "grapesjsbuilder"],
in their corresponding config.json.
Hoping this detail sheds some light by chance?