性格按钮命令在0.17.4版本中无法使用
@maekawataiki 这个问题已经修复,但还没正式发布——https://github.com/artf/grapesjs/issues/3497
阅读下方完整回答 ↓问题
版本:0.17.4
带有类型按钮的特性在0.17.4版本中无法调用命令,而命令在0.17.3之前是用来工作的。
预期行为
点击特质中定义的按钮调用命令。
发生了什么
点击按钮没有任何作用
jsfiddle 示例
命令在 0.17.3 -> https://jsfiddle.net/7pmz4u1v/3/ 上运行 命令在0.17.4 -> https://jsfiddle.net/7pmz4u1v/4/
回答(2)
@maekawataiki 这个问题已经修复,但还没正式发布——https://github.com/artf/grapesjs/issues/3497
谢谢你举报,@maekawataiki。 关于特性按钮命令在0.17.4上无法使用的好问题。GrapesJS 推荐的方法是使用事件驱动 API。 从这里开始: 查看你所在模块的[GrapesJS文档](https://grapesjs.com/docs/) 寻找“on()”事件监听器方法 大多数操作可以通过监听编辑器和组件事件来实现 常见模式: “JavaScript 留意变化 editor.on('change', () => console.log('something changed')); 组件生命周期 editor.on('component:mount', (c) => cons...
相关问答
通过相似的问题讨论继续研究。
问题 #3400
Ckeditor5 + GrapesJS 现在可以实现了!
我们是[DevFuture](https://devfuture.pro/grapesjs-development/),开发了集成GrapesJS + ckeditor5的插件。 视频示例: https://www.youtube.com/watch?v=xn4gSMIrx-A...
问题 #3432
我们能在 GrapesJS 编辑器中使用 [Wistia](https://wistia.com/) 吗?我想像Vimeo在编辑器中使用的那样使用它。
你好,@artf, 我们能在 GrapesJS 编辑器中使用 [Wistia](https://wistia.com/) 吗?我想像Vimeo在编辑器中使用的那样使用它。 ) 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.
浏览插件分类
直接跳转到市场上的插件分类页面。