编辑器里能添加信息模态吗?
目前没有关于扩展/更新样式管理器属性的文档(我刚意识到像 [grapesjs-style-filter](https://github.com/artf/grapesjs-style-filter)和 [grapesjs-style-gradient](https://github.com/artf/grapesjs-style-gradient)这样的插件,但还不够),说实话,我目前做的(作为公共 API)并不够稳固,我不喜欢它。我希望能达到[自定义特质](https://grapesjs.com/docs/modules/Traits.html#define-new-trait-type)的同样结果,但我们必须等待才能达到这个...
阅读下方完整回答 ↓问题
你好,
我想在 Grapejs 编辑器里添加一个可点击的问号,这样我们就能向用户提供该特定规格的具体信息。
它会打开一个模态,包含我们在向扇区添加该属性时能提供的所有信息。就像你在网页演示里做的那样。
回答(3)
目前没有关于扩展/更新样式管理器属性的文档(我刚意识到像 [grapesjs-style-filter](https://github.com/artf/grapesjs-style-filter)和 [grapesjs-style-gradient](https://github.com/artf/grapesjs-style-gradient)这样的插件,但还不够),说实话,我目前做的(作为公共 API)并不够稳固,我不喜欢它。我希望能达到[自定义特质](https://grapesjs.com/docs/modules/Traits.html#define-new-trait-type...
这是我今天做的,做了一些修改:

这是我想要的外观,现在我只需要想办法把我想要的内容放进模态里
嘿,我怎样才能用我的修改发布我的分支,针对拉取请求? “''js export default Backbone.View.extend({ 模板(model) { const pfx = this.pfx; 返回” <div class=“${pfx}label”> ${this.templateLabel(model)} </div> <div class=“${this.ppfx}fields”> ${this.templateInput(model)} </div> ${this.templateModal(model)} ; }, templateLabel(model) { co...
相关问答
通过相似的问题讨论继续研究。
问题 #3267
无法设置0像素盒子的阴影模糊
不知为何,编辑器不允许将模糊设置为0像素。 0总是神奇地变成5px。 <img width=“243” alt=“截图 2021-02-11 17 14 05” src=“https://user-images.githubusercontent.com/668451/1076...
问题 #3447
JavaScript 因编码问题无法使用
1 - 我复制了打字文本组件代码,而不是演示HTML代码; 2 - 并增加了allowScripts:1; 你可以在这里看到示例:http://bashworld.ru/demo.html 点击 查看代码,我们会看到许多 JS 编码字符。 我该如何解决这个问题?我需要解码所有...
问题 #1577
内联CSS注释导致代码管理器失效
显然,这段HTML和CSS是有效的: '<div style=“color: red; / height 200px; /; font-weight: blan;”>' (因此才有注释的height属性) Grapesjs 在处理此类属性时遇到困难,因为模型上的 style 属...
问题 #1410
拖拽占位符高亮位置
@artf 当我们从顶部设置到容器的边距,并想拖动某个元素时 拖拽占位符的高亮位置似乎不对,因为它也包含了边距,而且显示在顶部 即从哪里给出边距的元素。我怎样才能只在容器内显示拖曳占位标记,而不是外部,这样用户会少一些困惑?任何帮助都将不胜感激。 ![占位错误](https:/...
与此问题匹配的付费插件
根据问题关键词和标签相关性精选,助你更快交付。
正在加载付费插件推荐……
相关教程
关于同一主题的深入指南。
教程
Super Tooltip for GrapesJS — Version 0.1.5 Released 🎉
We’re excited to announce the v 0.1.5 update of Super Tooltip, our floating‑menu and tooltip plugin for GrapesJS
教程
GrapesJS in 2026: The Complete Guide to the Open-Source Web Builder Framework
Master GrapesJS in 2026. Architecture, code examples, React integration, plugin development, Studio SDK, and how it compares to other projects
浏览插件分类
直接跳转到市场上的插件分类页面。