PageKit — 可自托管的 GrapesJS 建站工具,附完整源码。 获取抢先体验

Webpage Preset
1 张图片
OF官方

Webpage Preset

免费
GrapesJS:0.19.x0.18.x0.17.x0.16.x
从 GitHub 下载

包含内容

  • 免费下载使用
  • 支持个人与商业使用

支持创作者

通过一次性或每月赞助,感谢创作者发布这款免费产品。

兼容 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-tablet and set-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.

评分:

暂无评价,成为第一个分享体验的人。


分享此产品:
最后更新:2026年9月8日
发布时间:2022年8月21日
版本:
0.19.x0.18.x0.17.x0.16.x

问答

暂无问题,有什么想问的?