Issue #2961đź’¬ AnsweredOpened August 18, 2020by kuhelbeher1 reactions

Components in custom modal isn't editable

Quick answerby Ju99ernaut❤ 1

Maybe use the layers panel or disable the script using a trait as shown on issue #2772

Read full answer below ↓

Question

Hello, I'm trying to add custom modal block to my project and I want to change content of this modal also with drag&drop. Here's code of my modal block: The problem with this code is that grapesjs wraps whole content with div wrapper when user drops it on canvas and everything inside this div isn't editable, selectable, droppable etc. Here's link for demo. Steps to reproduce:Drop modal block on canvasClick "Open modal" buttonTry to edit or drop something in modal content Also I cannot select "Open modal" button to change it styles or text. Can you help me this or maybe there is another approa...

Answers (3)

Ju99ernaut• August 19, 2020

Maybe use the layers panel or disable the script using a trait as shown on issue #2772

Ju99ernaut• August 18, 2020

I think the content field is treated as plain text so use the components field instead:

kuhelbeher• August 19, 2020

@Ju99ernaut thanks for great suggestion. It worked. But now I have different problem - how can I select "Open modal" button for styling or modifying? When I click "Open modal" button it opens modal. Can I somehow prevent firing this event? Here's demo

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.