Issue #1258šŸ’¬ AnsweredOpened July 4, 2018by YashPrince0 reactions

Style is not copying after cloning the element after Save

Quick answerby artf

Follow the issue template and provide a live demo

Read full answer below ↓

Question

Hi @artf. At the first time before saving the template, When I make one element and clone it, the style is coming in the clonned element. That is running fine. But when I save the template using Ajax and Call the below code:- and then clone the elements, their styling does not applies to the cloned elements. If I comment the editor.setComponents(response.content); and editor.setStyle(response.css); in success function then styling applies to the cloned elements but still does not style applies to the cloned elements after page refresh after save as editor.setComponents(response.content); and...

Answers (2)

artf• July 11, 2018

Follow the issue template and provide a live demo

lock[bot]• September 17, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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.