事件组件:移除错误触发
我可以确认我在v0.14.20版本中也遇到了同样的问题 'this.editor.on('component:remove', function(model) { console.log(“已移除); });`
阅读下方完整回答 ↓问题
你好。 当任何组件被踢到其他地方取消选中时,“组件:移除”事件会触发。 浏览器 – Firefox(自动更新)
https://jsfiddle.net/szLp8h4n/207/ 这里“console.log”收听了这个事件,并打印了取消选择,包括画布的主体。
[谷歌翻译]
回答(3)
我可以确认我在v0.14.20版本中也遇到了同样的问题
'this.editor.on('component:remove', function(model) { console.log(“已移除); });`
下次版本会修复
由于关闭后没有近期活动,该帖子已被自动锁定。请为相关漏洞开启新一期。
相关问答
通过相似的问题讨论继续研究。
问题 #1865
:葡萄换页
你好, 我在HTML页面中使用葡萄时发现了以下问题: 当你点击编辑器中的某些元素,比如在标签管理器中移动元素的箭头时,整个页面都会向上移动。 问题也出现在你的JSFiddle入门模板 https://jsfiddle.net/szLp8h4n。 v0.14.6 https://jsfiddle.net/Lqm7ouz...
问题 #1290
设置 href 作为初始化后不可编辑的链接块
#1277已关闭,但问题依然存在,所以我必须作为新问题发布 感谢你之前的帮助 @maryia-kabash@artf我为我的自定义链接制作了一个自定义块,请参见代码:编辑。BlockManager.add(“unsubscribe-block”, { 标签:“取消订阅”, 内容...
与此问题匹配的付费插件
根据问题关键词和标签相关性精选,助你更快交付。
正在加载付费插件推荐……
相关教程
关于同一主题的深入指南。
教程
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.
浏览插件分类
直接跳转到市场上的插件分类页面。