在背景属性中指定背景大小会破坏葡萄
问题
使用最新版本的'grapesjs'(0.14.55)和'grapesjs-preset-webpage'(0.1.10),我将我的编辑器配置如下: “JavaScript 从“GrapesJ”导入葡萄; importgrapesJsPresetWebpage from 'grapesjs-preset-webpage'; Grapesjs.init({ // ... 插件:[grapesJsPresetWebpage], pluginsOpts: { [grapesJsPresetWebpage]: { customStyleManager: [ { ID:“Deco”, 名称:“装饰”, 开场:假, buildProps: ['background'], 性质:[ { 名称:“背景”, 财产:“背景”, 性质: [{ 名称:“背景尺寸”, 属性:“背景大小” } ] } ] } ] } } }); 错误会消失,但我不需要所有这些属性......
回答(3)
好的,我想我找到了问题所在,我会在下一个版本修复它
可以确认在v0.14.57修复了。谢谢@artf!
由于关闭后没有近期活动,该帖子已被自动锁定。请为相关漏洞开启新一期。
相关问答
通过相似的问题讨论继续研究。
问题 #1357
:身体 -> 装饰 -> 背景-图像
版本 0.14.25 |本地副本 GrapesJS 测试支持:Chrome 68,Firefox 61 在“Body (Selected #wrapper) -> Decorations -> Background -> Layer # -> Image”中添加背景图片,保存到...
问题 #1421
:面板按钮视图中,“禁用”而非“active”类
你好 我猜禁用面板按钮时职业有个bug。 https://github.com/artf/grapesjs/blob/dev/src/panels/view/ButtonView.js#L22
问题 #361
GetProperty Style Manager 无法工作
https://github.com/artf/grapesjs/wiki/API-Style-Manager#getproperty
问题 #1579
边境颜色问题
@artf 如果你在编辑器上拖动按钮,把像 rgb(255, 0, 0) 这样的颜色粘贴到边框颜色里,然后在编辑器里选择其他元素而不更改任何属性,然后重新放置按钮,那么边框颜色就会变为 RGB(255),如果我们更改了边框的任何属性,CSS 就会崩溃。请检查并修复。如果有快速解...
与此问题匹配的付费插件
根据问题关键词和标签相关性精选,助你更快交付。
正在加载付费插件推荐……
相关教程
关于同一主题的深入指南。
教程
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.
浏览插件分类
直接跳转到市场上的插件分类页面。