Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to integrate grapesjs-preset-newsletter plugin in project? #142

Open
nzaeta opened this issue Oct 4, 2024 · 3 comments
Open

How to integrate grapesjs-preset-newsletter plugin in project? #142

nzaeta opened this issue Oct 4, 2024 · 3 comments

Comments

@nzaeta
Copy link

nzaeta commented Oct 4, 2024

I'm having trouble with integrating the newsletter plugin in my project.
I added these lines, but I don't see any blocks in the "Open Blocks" section, and there are much fewer options than in the demo:
https://grapesjs.com/demo-newsletter-editor.html
Maybe it is an older version?

<script src="https://unpkg.com/grapesjs"></script>
<script src="https://unpkg.com/grapesjs-preset-newsletter"></script>

Full code:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Design Email</title>
    <link href="https://unpkg.com/grapesjs/dist/css/grapes.min.css" rel="stylesheet">
    <script src="https://unpkg.com/grapesjs"></script>
    <script src="https://unpkg.com/grapesjs-preset-newsletter"></script>

</head>
<body>
    <div id="gjs" style="height: 100%;"></div>

    <script type="text/javascript">
        const editor = grapesjs.init({
            container: '#gjs',
            plugins: ['gjs-preset-newsletter'],
            pluginsOpts: {
                'gjs-preset-newsletter': {}
            }
        });
    </script>
</body>
</html>
@alaksandarjesus
Copy link

I am having same issue. Can someone please shed some light

https://stackoverflow.com/questions/79039566/plugin-grapesjs-preset-newsletter-not-found

@alaksandarjesus
Copy link

It was problem with versioning. I downloaded from https://github.com/GrapesJS/grapesjs and used these js files. It worked like charm.

@nzaeta
Copy link
Author

nzaeta commented Oct 4, 2024

It was problem with versioning. I downloaded from https://github.com/GrapesJS/grapesjs and used these js files. It worked like charm.

Hi, could you tell me which are the files? That repo is main grape JS , not the newsletter plugin, is it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants