问题 #1433✓ 已解决提出于 2018年9月17日作者 YashPrince6 个反应

悬停工具栏

快速解答作者 limbobark6

@sakshigarg9, “''js 编辑。Commands.extend('select-comp', { onHovered(em, component) { const trg = component && component.getEl(); 如果 (trg) { const pos = this.getElementPos(trg); this.updateBadge(trg, pos); this.updateToolbar(component);显示工具栏 this.updateHighlighter(trg, pos); this.showElementOffset(trg, pos); } }, }); ```

阅读下方完整回答 ↓

问题

@artf我们如何在悬停时显示工具栏。目前,当我们选择任何元素时,工具栏是打开的,但我想在悬停时显示它。任何帮助都将不胜感激。 ![工具栏配置](https://user-images.githubusercontent.com/40828744/45635174-f19f3f00-bac1-11e8-95e5-c988d27f8531.png)

回答(3)

👍 最有帮助limbobark2019年9月9日

@sakshigarg9, “''js 编辑。Commands.extend('select-comp', { onHovered(em, component) { const trg = component && component.getEl(); 如果 (trg) { const pos = this.getElementPos(trg); this.updateBadge(trg, pos); this.updateToolbar(component);显示工具栏 this.updateHighlighter(trg, pos); this.showElementOffset(trg...

sakshigarg92019年3月4日

@YashPrince 你好,你解决这个问题了吗?我需要类似的实现

相关问答

通过相似的问题讨论继续研究。

与此问题匹配的付费插件

根据问题关键词和标签相关性精选,助你更快交付。

查看全部插件

正在加载付费插件推荐……

免费方案

在以下平台查看开源 GrapesJS 插件: GitHub 或在我们的免费目录中快速搜索。

浏览免费插件 →
高级方案

高级插件提供支持、定期更新和生产就绪的功能——为你节省数天的集成工作。

浏览高级插件 →

浏览插件分类

直接跳转到市场上的插件分类页面。