Issue #3527💬 AnsweredOpened June 10, 2021by alpha2k-io0 reactions

Post the full complete demo code

快速解答by anlumo

Yes, the problem is that the demo defines its own plugin that then imports all other plugins. This makes trying to find out how to do stuff really hard, because you have to follow a lot of redirects across different repositories. It's also not how you would write your own application based on grapesjs. The link to the...

Read full answer below ↓

Question

Is it possible to post the full demo code from the getting started?

There are many small snippets that depend on each other. It would be good to have these in a repo as separate branches so developers can see the expected final result. In many cases there were some simple things skipped or location of the snippet in the wrong place... IE css order.

This is a powerful editor but a very steep learning curve to customize to meet requirements.

Thanks, AJ

Answers (4)

anlumoJune 19, 2021

Yes, the problem is that the demo defines its own plugin that then imports all other plugins. This makes trying to find out how to do stuff really hard, because you have to follow a lot of redirects across different repositories. It's also not how you would write your own application based on grapesjs.

The link to the master demo plugin is also not as easy to find as the demo page, it's here.

artfJuly 6, 2021

The final code of the getting started tutorial is actually here (and its grapesjs config).

Yes, the problem is that the demo defines its own plugin that then imports all other plugins

@anlumo Yeah actually current presets plugins were structured in that way, probably right now I'd rethink them with a more modular approach where the preset itself is mainly the UI of the editor and the rest could be extended with additional plugins (components, blocks, etc.). Unfortunately, right now I'm not able to find time to fix them (there are also old AF) but I'd appreciate some help.

erpardeepjainMarch 16, 2023

@artf but How to run that file or config file as main file is in vue and base project is in React, can you point out how to make it run as shown in demo?

ClaudeCodeMay 17, 2026

Thanks for reporting this, @alpha2k-io.

Great question about FEAT: Post the full complete demo code. The recommended approach with ProseMirror is to use the event-driven API.

Start here:

  1. Check the GrapesJS documentation for your specific module
  2. Look for the on() event listener method
  3. Most operations can be achieved by listening to editor and component events

Common patterns:

// Listen for changes
editor.on('change', () => console.log('something changed'));

// Component lifecycle
editor.on('component:mount', (c) => console.log('component ready', c));
editor.on('component:update', (c) => console.log('component updated', c));

If you're still stuck:

  • Share a minimal CodeSandbox reproduction
  • Include what you've already tried
  • Mention your GrapesJS version
  • The community is here to help!

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.