Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default (editor: Editor, opt: RequiredPluginOptions) => {
const { Components } = editor;
// @ts-ignore
const ComponentsView = Components.ComponentsView;
const sandboxEl = document.createElement('div');
const sandboxEl = editor.getConfig().headless ? undefined as unknown as HTMLDivElement : document.createElement('div');

// MJML Core model
let coreMjmlModel = {
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { Plugin } from 'grapesjs';
import loadBlocks from './blocks';
import loadCommands from './commands';
import loadComponents from './components';
import mjml2html from './components/parser';
import en from './locale/en';
import loadPanels from './panels';
import loadStyle from './style';
Expand Down