-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
86 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,38 @@ | ||
'use client' | ||
"use client"; | ||
|
||
import GrapesDemoEditor from "../GrapesEditor"; | ||
import { components, plugins, pluginsOpts } from "./utils"; | ||
|
||
const info = { | ||
name: 'GrapesJS MJML Newsletter Builder', | ||
repoLink: 'https://github.com/GrapesJS/mjml', | ||
repoName: 'MJML Preset', | ||
name: "GrapesJS MJML Newsletter Builder", | ||
repoLink: "https://github.com/GrapesJS/mjml", | ||
repoName: "MJML Preset", | ||
}; | ||
|
||
const config = { | ||
storageManager: { | ||
options: { | ||
local: { key: 'gjsProjectMjml' } | ||
} | ||
storageManager: { | ||
options: { | ||
local: { key: "gjsProjectMjml" }, | ||
}, | ||
styleManager: {}, | ||
}, | ||
styleManager: {}, | ||
}; | ||
|
||
export default function DemoEditorNewsletter() { | ||
return ( | ||
<> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<link rel="stylesheet" href="/assets/styles/grapesjs/grapesjs-preset-mjml.css"/> | ||
<GrapesDemoEditor | ||
components={components} | ||
plugins={plugins} | ||
pluginsOpts={pluginsOpts} | ||
info={info} | ||
config={config} | ||
/> | ||
</> | ||
) | ||
} | ||
return ( | ||
<> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<link | ||
rel="stylesheet" | ||
href="/assets/styles/grapesjs/grapesjs-preset-mjml.css" | ||
/> | ||
<GrapesDemoEditor | ||
components={components} | ||
plugins={plugins} | ||
pluginsOpts={pluginsOpts} | ||
info={info} | ||
config={config} | ||
/> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,38 @@ | ||
'use client' | ||
"use client"; | ||
|
||
import GrapesDemoEditor from "../GrapesEditor"; | ||
import { components, plugins, pluginsOpts } from "./utils"; | ||
|
||
const info = { | ||
name: 'GrapesJS Newsletter Builder', | ||
repoLink: 'https://github.com/GrapesJS/preset-newsletter', | ||
repoName: 'Newsletter Preset', | ||
name: "GrapesJS Newsletter Builder", | ||
repoLink: "https://github.com/GrapesJS/preset-newsletter", | ||
repoName: "Newsletter Preset", | ||
}; | ||
|
||
const config = { | ||
storageManager: { | ||
options: { | ||
local: { key: 'gjsProjectNl' } | ||
} | ||
storageManager: { | ||
options: { | ||
local: { key: "gjsProjectNl" }, | ||
}, | ||
styleManager: {}, | ||
}, | ||
styleManager: {}, | ||
}; | ||
|
||
export default function DemoEditorNewsletter() { | ||
return ( | ||
<> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<link rel="stylesheet" href="/assets/styles/grapesjs/grapesjs-preset-newsletter.css"/> | ||
<GrapesDemoEditor | ||
components={components} | ||
plugins={plugins} | ||
pluginsOpts={pluginsOpts} | ||
info={info} | ||
config={config} | ||
/> | ||
</> | ||
) | ||
} | ||
return ( | ||
<> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<link | ||
rel="stylesheet" | ||
href="/assets/styles/grapesjs/grapesjs-preset-newsletter.css" | ||
/> | ||
<GrapesDemoEditor | ||
components={components} | ||
plugins={plugins} | ||
pluginsOpts={pluginsOpts} | ||
info={info} | ||
config={config} | ||
/> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters