当我在分割面板中放置葡萄时,GJS-CV-tools 位置错误
问题
你好,感谢你的工作。我有个问题。我想做一个类似Codepen的视图,并且想让Grapesjs视图可以上下拖动。但当我拖动它时,工具会去错位置,鼠标悬停高亮元素的位置也错了。我尝试过 splitjs 和其他开源代码,但总是遇到这个问题。 你能帮帮我吗?非常感谢!!
回答(3)
你可以试试运行 'editor.refresh()'
@Ju99ernaut 非常感谢,你救了我一命!
谢谢你举报,@xinnai。 关于我在分格中放置葡萄时,gjs-cv-tools 位置错误的问题很棒。GrapesJS 推荐的方法是使用事件驱动 API。 从这里开始: 查看你所在模块的[GrapesJS文档](https://grapesjs.com/docs/) 寻找“on()”事件监听器方法 大多数操作可以通过监听编辑器和组件事件来实现 常见模式: “JavaScript 留意变化 editor.on('change', () => console.log('something changed')); 组件生命周期 editor.on('component:mount', (c) =>...
相关问答
通过相似的问题讨论继续研究。
问题 #3315
毫米或厘米单位转换为px。
我意识到毫米或厘米单位是可以转换成像素的。我该如何解决这个问题? 谢谢你 ,这是错了还是我做错了?我本以为资源不会显示出来,但它们全都可见 ) 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.
浏览插件分类
直接跳转到市场上的插件分类页面。