Webpage Preset
What's Included
- Free to download & use
- Open for personal & commercial use
Support The Creator
Use one-time or monthly support to thank the creator for this free product.
GrapesJS Compatible
Tested with GrapesJS 0.19.x, 0.18.x, 0.17.x, 0.16.x
Open Source on GitHub
Free to use, fork, and contribute
Editor Compatible
Designed for the GrapesJS open-source editor
Free to Use
Open for personal and commercial projects
grapesjs-preset-webpage is the official starting configuration behind the GrapesJS demo page. It wires up the pieces a general-purpose site builder needs — code import, device switching and a canvas reset — so you do not have to assemble them yourself.
Commands
gjs-open-import-webpage— opens a modal where a user can paste HTML and CSS to load into the canvas.set-device-desktop,set-device-tabletandset-device-mobile— switch the canvas between the three responsive breakpoints.canvas-clear— remove every component and style from the canvas, behind a confirmation prompt.
Blocks
Three starter blocks are added: link-block, quote and text-basic. Use the blocks option to register a subset, or block to extend any of them by id.
Configuration
The import modal is customisable through modalImportTitle, modalImportButton, modalImportLabel and modalImportContent — the last of which accepts a function, so you can pre-fill the modal with the current page markup. importViewerOptions passes options to the code viewer, showStylesOnChange opens the Style Manager whenever the selection changes, and useCustomTheme toggles the preset's own theme.
Good to know
From v1 the preset no longer bundles other plugins — add block, form or export plugins to your project separately. BSD-3-Clause.
Ratings:
No reviews yet. Be the first to share your experience.
Questions & Answers
No questions yet. Have something to ask?
Common problems this plugin can help fix
Real community questions on the same topic — see how others worked around them.
- #2699✓ Solved · 3
Can multiple Webpage Builder tabs be opened?
- #1285💬 2 answers
How suitable grapeJs for custom webPages for every user in an web app.
- #6445✓ Solved · 3
The doc website has missing info
- #5154✓ Solved · 4
TS2416: Property '_up' in type 'PropertyStack' is not assignable to the same property in base type 'PropertyComposite<PropertyStackProps>'
