Grapesjs bootstrap modal
问题
我们该如何用引导模态替换 grapesjs 模态? 举个例子,假设我想打开MJML库的导出模态。 我在我的视图中创建了html元素: 然后我覆盖command-export-mjml.js const container = document.getElementById("exportModalContent"); 以及 但这样既打开了BS模态,也 grapesjs 模态,而 grapesjs 模态却在BS模态之外。
回答(2)
我设法让它能用,但说实话,因为导出模态和原版Grapesjs模态相比看起来更好,所以根本不值得费心:)
实际上,我们没有任何公开API来扩展内置模态。 顺便问一下,你试过不调用“modal.open()”吗?
相关问答
通过相似的问题讨论继续研究。
问题 #4400
Bootstrap Carousel Slider is not working
GrapesJS 版本 [X] 我确认使用最新版本 GrapesJS 你用的是什么浏览器? 铬 可复制演示链接 无链接 描述一下那个虫子 如何复现这个漏洞?...在初始化函数中添加 Bootstrap GrapesJS ...根据 Bootstrap 文档添加滑块组件...滑块...
问题 #6211
递归过多
GrapesJS 版本 [X] 我确认使用最新版本 GrapesJS 你用的是什么浏览器? Firefox 131.0.2 可复制演示链接 https://grapesjs.com/demo-newsletter-editor.html 描述一下那个虫子 如何复现这个漏洞?进入...
问题 #3365
Contenteditable attribute on Layer's name span
你好@artf 我想知道为什么图层的名称范围会有一个“contenteditable”属性。 如果我没记错的话,grapesJs 上并没有实现任何机制,可以在刷新页面后真正更改图层名称。 这对用户来说可能会有点困惑。 '''html <div class=“gjs-layer-...
问题 #3069
BUG:退出编辑后链接上的样式消失或嵌套文本元素
你好, 我正在编辑带有版本 0.16.3 + newsleter-plugin 的遗留 HTML。样式存储在内联(因为该工具用于邮件编辑),我使用“componentFirst: true”这个功能。 我在编辑包含其他文本元素的组件文本时遇到了一个问题。 一旦我编辑父div中的...
与此问题匹配的付费插件
根据问题关键词和标签相关性精选,助你更快交付。
正在加载付费插件推荐……
相关教程
关于同一主题的深入指南。
教程
Introducing Search on GJS.Market
GJS.Market now has one search across everything we publish — plugins, articles, community questions, guides, authors and services. Press ⌘K from any page.
教程
GJS.Market Is Now Available for India 🇮🇳
GJS.Market is expanding its global presence with a dedicated experience for developers, agencies, SaaS companies, and digital creators in India
教程
如何在2026年用 GrapesJS 构建AI驱动的页面构建器
我们构建GJSDocs的经验——从简单的AI文本生成到结构化、上下文感知的视觉编辑
浏览插件分类
直接跳转到市场上的插件分类页面。