从0.16.27升级到0.17.27后,块无法工作
问题
葡萄JS版本
- 我确认使用最新版本的GrapesJS
你用的是什么浏览器?
Firefox 93.0,Chrome 94.0.4606.71
可复制演示链接
https://github.com/Tribe-Mobile/grapesjs-blocks
描述一下那个虫子
如何复现这个漏洞?
- 运行git仓库,不显示任何块
- 切换到版本 0.16.27 nd 运行
预期的行为是什么? 展示方块
目前的行为是什么? 没有显示方块
行为准则
- 我同意遵守本项目的行为准则
回答(2)
见这里 #3835
感谢你报告,@sduncan部落。 关于从0.16.27升级到0.17.27后块无法工作的好问题。GrapesJS 推荐的方法是使用事件驱动 API。 从这里开始: 查看你所在模块的[GrapesJS文档](https://grapesjs.com/docs/) 寻找“on()”事件监听器方法 大多数操作可以通过监听编辑器和组件事件来实现 常见模式: “JavaScript 留意变化 editor.on('change', () => console.log('something changed')); 组件生命周期 editor.on('component:mount', (c) => c...
相关问答
通过相似的问题讨论继续研究。
问题 #5373
“getDirtyCount()” 加载后返回 “1”
葡萄JS版本 [X] 我确认使用最新版本的GrapesJS 你用的是什么浏览器? Chrome最新款 可复制演示链接 https://github.com/padcom/grapes-bug-dirty-after-loading/blob/master/src/App.vue...
问题 #4094
在Chrome的编辑器中拖放块时,无法拖放块块
葡萄JS版本 [X] 我确认使用最新版本的GrapesJS 你用的是什么浏览器? 版本 97.0.4692.71(官方构建)(64位) 可复制演示链接 https://grapesjs.com/demo.html 描述一下那个虫子 如何复现这个漏洞?在编辑器中拖放基本方块 预期...
问题 #4039
在Chrome浏览器中拖放块进入编辑器时,会报错
葡萄JS版本 [X] 我确认使用最新版本的GrapesJS 你用的是什么浏览器? Chromw 96.0.4664.45 可复制演示链接 https://thanhtunguet.github.io/grapesjs-react/?path=/story/grapesjsrea...
问题 #3940
更新按钮文本的问题
葡萄JS版本[X] 我确认使用最新版本的GrapesJS你用的是什么浏览器? Chrome - 版本 95.0.4638.69可复制演示链接 两个地方:https://grapesjs.com/demo.html 和我这里有个仓库:https://github.com/dan-...
与此问题匹配的付费插件
根据问题关键词和标签相关性精选,助你更快交付。
正在加载付费插件推荐……
相关教程
关于同一主题的深入指南。
教程
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 to Build a Production GrapesJS Editor: The Complete Walkthrough of Brief, Preset, Plugins, and Services
A complete walkthrough of building a production GrapesJS editor: how to choose a preset, pick plugins, and scope setup services without burning a sprint.
教程
Big Updates: TinyMCE 8 and Placeholder 2.0 for GrapesJS
In May we shipped major updates to two of our most popular GrapesJS plugins — TinyMCE Inline Text Editor and Placeholder.
浏览插件分类
直接跳转到市场上的插件分类页面。