类别未出口用于车身
我也遇到了同样的问题。 封装类属性是设置的,但 editor.getHtml() 返回 “<body></body>”。 我正在启动GrapesJS,使用: { fromElement: true, 自动渲染:0, 编辑器大小 身高:“100%”, 宽度:“100%”, showOffsetsSelected: true, 日志:确实, allowScripts:1, mediaCondition:“最小宽度”, exportWrapper:1, 包裹体:1, clearStyles: 0, domComponents: { storeWrapper: 1 } }
阅读下方完整回答 ↓问题
- 前往 https://grapesjs.com/demo.html
- 透明画布
- 点击身体,添加职业,应用背景色
- 背景色现现出现
- 点击“导出”——>导出为压缩包
- 打开 Zip 文件,查看“index.html”文件。虽然该类是在style.css年创建的,但类名从未在 HTML 中的“<body></body>'”上应用过。
回答(1)
我也遇到了同样的问题。 封装类属性是设置的,但 editor.getHtml() 返回 “<body></body>”。 我正在启动GrapesJS,使用: { fromElement: true, 自动渲染:0, 编辑器大小 身高:“100%”, 宽度:“100%”, showOffsetsSelected: true, 日志:确实, allowScripts:1, mediaCondition:“最小宽度”, exportWrapper:1, 包裹体:1, clearStyles: 0, domComponents: { storeWrapper: 1 } }
相关问答
通过相似的问题讨论继续研究。
问题 #4000
在根体层粘贴组件会触发类型错误
葡萄JS版本 [X] 我确认使用最新版本的GrapesJS 你用的是什么浏览器? Chrome v89 可复制演示链接 https://grapesjs.com/demo.html 描述一下那个虫子 如何复现这个漏洞?在官方演示中,进入图层管理器,用“cmd+c”复制任意图层点...
问题 #4837
HTML元素的ID会在projectData加载的不同页面上递增
葡萄JS版本 [X] 我确认使用最新版本的GrapesJS 你用的是什么浏览器? Firefox 109 可复制演示链接 https://grapesjs.com/demo.html 描述一下那个虫子 你好, 我注意到当我在 projectData 中加载多个 HTML 中使用...
问题 #6152
通过自定义代码添加的CSS在移除自定义代码组件后依然存在
葡萄JS版本 [X] 我确认使用最新版本的GrapesJS 你用的是什么浏览器? 任何 可复制演示链接 https://grapesjs.com/demo 描述一下那个虫子 如何复现这个漏洞?添加带有HTML + CSS的自定义代码组件删除自定义代码组件。 预期的行为是什么?...
问题 #5810
不必要的画布风格
葡萄JS版本[X] 我确认使用最新版本的GrapesJS你用的是什么浏览器? Arc 版本 1.35.0 / Chromium 引擎 123.0可复制演示链接 https://grapesjs.com/demo.html描述一下那个虫子 我的特殊情况: 就我而言,插件和通用样式...
与此问题匹配的付费插件
根据问题关键词和标签相关性精选,助你更快交付。
正在加载付费插件推荐……
相关教程
关于同一主题的深入指南。
教程
Vanilla GrapesJS vs GrapesJS With Plugins: What You Actually Get Out of the Box (2026)
New to GrapesJS? See exactly what the stock editor gives you, where it falls short, and which plugins close the gaps — a beginner-friendly 2026 comparison
教程
GrapesJS DevTools: A Developer Panel Inside Your Editor
If you've ever debugged GrapesJS with console.log(editor.getSelected()) and a dozen throwaway event listeners — this post is for you.
教程
How We Built Composeit in Record Time Using GrapesJS Shadcn
Bypass foundational builder boilerplate and focus on what truly matters.
浏览插件分类
直接跳转到市场上的插件分类页面。