Webpage Preset
包含内容
- 免费下载使用
- 支持个人与商业使用
支持创作者
通过一次性或每月赞助,感谢创作者发布这款免费产品。
兼容 GrapesJS
已在 GrapesJS 0.19.x, 0.18.x, 0.17.x, 0.16.x 上测试
GitHub 开源
可免费使用、Fork 和贡献
编辑器兼容
专为 GrapesJS 开源编辑器设计
可免费使用
可用于个人和商业项目
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.
评分:
暂无评价,成为第一个分享体验的人。
问答
暂无问题,有什么想问的?
此插件可帮助解决的常见问题
社区中关于同一主题的真实问题——看看其他人是如何解决的。
