@mjml-agent-editor/editor 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/canvas.js CHANGED
@@ -3302,6 +3302,7 @@ var COLUMN_CHILDREN = /* @__PURE__ */ new Set([
3302
3302
  "mj-table",
3303
3303
  "mj-text"
3304
3304
  ]);
3305
+ var HEAD_CSS = '[data-gjs-type="mj-head"] { display: none !important; }';
3305
3306
  function fixPluginTypes(editor) {
3306
3307
  addTableType(editor);
3307
3308
  for (const type of editor.Components.getTypes()) {
@@ -3942,7 +3943,7 @@ function EmailEditor({
3942
3943
  // privacy policy. Nothing we show uses it: GrapesJS draws its toolbar and layer icons
3943
3944
  // as SVG, and its icon-font panels and style manager are not rendered here.
3944
3945
  cssIcons: "",
3945
- canvasCss: CANVAS_CSS,
3946
+ canvasCss: CANVAS_CSS + HEAD_CSS,
3946
3947
  fromElement: false,
3947
3948
  panels: { defaults: [] },
3948
3949
  blockManager: { appendTo: "#gjs-blocks" },