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

FEAT: Post the full complete demo code

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 (3)

anlumoJune 19, 20210 reactions

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, 20210 reactions

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, 20230 reactions

@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?

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...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.