Issue #2673✓ SolvedOpened March 20, 2020by qtarant4 reactions

Function to refresh DOM tree after component changes

Quick answerby qtarant3

I have already solved my problem. The key code is the event "rte:disable" that is fired when the Rich Text Editor (rte) is closed. And another important thing is that the content that it has been edited is not in the component model, only in its view, so you have to refresh the model with that content. The relevant co...

Read full answer below ↓

Question

Hello. I am developing a site using this amazing software. Now, I am customizing the editor and I have found a task that I am not be able to carry on. I am using the ckeditor plugin and it works as expected. In the ckeditor toolbar I have the option of insert images inline the text. It works well, but the problem is that I would like GrapesJS to recognize this image as a component (I have also a image component and block in GrapesJS) as usual when the edition of the text has finished for example. The idea is to refresh de component DOM (if posible) after the edition (with the image inserted b...

Answers (2)

👍 Most helpfulqtarantMarch 23, 2020

I have already solved my problem. The key code is the event "rte:disable" that is fired when the Rich Text Editor (rte) is closed. And another important thing is that the content that it has been edited is not in the component model, only in its view, so you have to refresh the model with that cont...

pouyamiralayiMarch 21, 2020

@qtarant check out #2537 comment Cheers!

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.