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)
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.
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.
@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.
Issue #450
Flex support
In the demo I see "flex" tab which gives us all flex styles. But there is no such tab in current "0.12.17" version. Is it a custom build? p...
Issue #3594
BUG: Hover on component when parent of editor scrolls, show wrong positioning
Version: 0.17.19 Are you able to reproduce the bug from the demo? No, because its full screen and there is no parent container scroll. What...
Issue #3443
BUG: backbone-undo/underscore security advisory
Version: v0.17.3 Are you able to reproduce the bug from the demo?[x] Yes[ ] No What is the expected behavior? See below What is the current...
Issue #3447
BUG: javascripts are not working due to encoding issue
1 - I copied Typed text components code instead of demo HTML code; 2 - And added allowScripts: 1; You can see example here: http://bashworl...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.