Issue #3094πŸ’¬ AnsweredOpened Oct 26, 2020by marcepoblet0 reactions

RichTextEditor dont save some changes from the modal

Quick answerby GoodPHP

Hi, If you didn't find answer here, you can contact with Devfuture Team: https://devfuture.pro/contact/ We specialise on GrapesJS.

Read full answer below ↓

Question

in the RichTextEditor I have added a button that opens a modal, and this modal enters certain values that I then insert into the html. But when I save these values the html does not save them. What could be the problem? I shared the code and a video in the PPTX. Presentation1.pptx editor.RichTextEditor.add('conditionIf', { icon: '<b>Condition IF</b>', attributes: {title: 'Condition IF'}, result: rte => { let htmlInsert = '' const pfx = editor.getConfig().stylePrefix const modal = editor.Modal const container = document.createElement('div') const btnClass = pfx + 'btn-prim ' + pfx + 'btn-impor...

Answers (2)

GoodPHPβ€’ Oct 30, 2020

Hi,

If you didn't find answer here, you can contact with Devfuture Team: https://devfuture.pro/contact/

We specialise on GrapesJS.

artfβ€’ Nov 9, 2020

Probably the issue here is related to the loss of focus during the editing in the modal. You should find a way to keep the focus on the RTE (maybe creating your own modal which prevents the propagation of events), but this is not related to the core of the editor so I have to close this issue.

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.