Modal template
Question
Is there a way for me to modify the template from a compiled state?
If not, what would be the cleanest way to insert title and content into a modal skeleton from our CMS for a tighter look and feel? I realize by doing that it would lose grapesjs modal open close events.
Answers (3)
Now it's possible to replace the modal https://grapesjs.com/docs/modules/Modal.html#custom-modal
Here's a list of plugins that use the built in modals, hopefully they're helpful: https://github.com/artf/grapesjs-tui-image-editor https://github.com/artf/grapesjs-custom-code https://github.com/Ju99ernaut/grapesjs-template-manager https://github.com/Ju99ernaut/grapesjs-script-editor https://github.com/Ju99ernaut/grapesjs-blockly
Thanks, but I was looking for a way to inject the content into my own modal. A lot of libraries have a modal template file or variable to do this.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3515
BUG: gjs-selected Style is Hardcoded
This definition: https://github.com/artf/grapesjs/blob/88249c38577852dc3c42047356a70a12066ee6ca/src/canvas/view/FrameView.js#L303-L306 is a...
Issue #590
How to overwrite domain_abstract ui Input component?
https://github.com/artf/grapesjs/blob/25fdbe14098c7e1a65d3e5527749302174f56a7d/src/domainabstract/ui/Input.js I want to change the input cl...
Issue #2592
Modal width
Hello, is there a way to set a modal's width, its currently set to 850px by CSS, but I would like to create a dialog with a small amount of...
Issue #1615
[Feature] support edit credentials request attribute on Remote Storage
The credentials options its forced to be 'include' on Remote Storage. https://github.com/artf/grapesjs/blob/master/src/storage_manager/mode...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.