Grapesjs bootstrap modal
问题
我们该如何用引导模态替换 Grapesjs 模态? 举个例子,假设我想打开MJML库的导出模态。 我在我的视图中创建了html元素: 然后我覆盖command-export-mjml.js 'const container = document.getElementById(“exportModalContent”);' 以及 但这会同时打开BS模态和葡萄神情态,而葡萄神情态在BS模态之外。
回答(2)
我设法让它能用,但说实话,因为导出模态和原版Grapesjs模态相比看起来更好,所以根本不值得费心:)
实际上,我们没有任何公开API来扩展内置模态。 顺便问一下,你试过不调用“modal.open()”吗?
相关问答
通过相似的问题讨论继续研究。
问题 #4400
Bootstrap 旋转木马滑块无法工作
葡萄JS版本 [X] 我确认使用最新版本的GrapesJS 你用的是什么浏览器? 铬 可复制演示链接 无链接 描述一下那个虫子 如何复现这个漏洞?...在 GrapesJS init 函数中添加 Bootstrap...根据 Bootstrap 文档添加滑块组件...滑块只显示...
问题 #6211
递归过多
葡萄JS版本 [X] 我确认使用最新版本的GrapesJS 你用的是什么浏览器? Firefox 131.0.2 可复制演示链接 https://grapesjs.com/demo-newsletter-editor.html 描述一下那个虫子 如何复现这个漏洞?进入 grap...
问题 #3365
图层名称范围上的contenteditable属性
你好@artf 我想知道为什么图层的名称范围会有一个“contenteditable”属性。 如果我没记错的话,grapesJs 上并没有实现任何机制,可以在刷新页面后真正更改图层名称。 这对用户来说可能会有点困惑。 '''html <div class=“gjs-layer-...
问题 #3069
BUG:退出编辑后链接上的样式消失或嵌套文本元素
你好, 我正在编辑带有版本 0.16.3 + newsleter-plugin 的遗留 HTML。样式存储在内联(因为该工具用于邮件编辑),我使用“componentFirst: true”这个功能。 我在编辑包含其他文本元素的组件文本时遇到了一个问题。 一旦我编辑父div中的...
与此问题匹配的付费插件
根据问题关键词和标签相关性精选,助你更快交付。
正在加载付费插件推荐……
相关教程
关于同一主题的深入指南。
教程
How to Build an AI-Powered Page Builder with GrapesJS in 2026
What we learned building GJSDocs — from simple AI text generation to structured, context-aware visual editing
教程
How Much Does It Cost to Build a SaaS Page Builder in 2026?
How much does it cost to build a SaaS page builder in 2026? Explore realistic development costs, timelines, features, and how using GrapesJS can reduce
教程
PageKit: the GrapesJS application you'd have to build anyway
A source-available Next.js app around the open-source GrapesJS core — publishing, custom domains, leads, checkout and a plugin loader.
浏览插件分类
直接跳转到市场上的插件分类页面。