Issue #3727💬 AnsweredOpened August 26, 2021by SintoDema1 reactions

Issue on Style Import

Quick answerby artf1

Hi @javadsamiee the issue was fixed on the latest version of the preset plugin

Read full answer below ↓

Question

Hi @artf, Describe the bug detailed While creating a new template using GrapesJS, I came across a scenario that, when we try to import CSS from the import modal it does not get reflected in the editor. On a blank editor, I have created a template with HTML & CSS adding to it.After that, I need to do some changes in the CSS section, for that, I took the Import option at the top of the editor & scrolled to the style tag at the bottom. There I saw the style that causing the issue, I selected that and removed it. After that, I clicked the Import button. Then I checked the template & the style iss...

Answers (4)

artfJanuary 6, 2023

Hi @javadsamiee the issue was fixed on the latest version of the preset plugin

artfAugust 30, 2021

Hi @SintoDema the issue is here https://github.com/artf/grapesjs-preset-webpage/blob/3e5a9e12998c9a32b6f1199953084163678e6c17/src/commands/openImport.js#L15-L18 As you see, it updates components but doesn't clear the styles module. I don't have time to work on that plugin right now but I'd ask you...

javadsamieeJanuary 5, 2023

Hi @SintoDema the issue is here https://github.com/artf/grapesjs-preset-webpage/blob/3e5a9e12998c9a32b6f1199953084163678e6c17/src/commands/openImport.js#L15-L18As you see, it updates components but doesn't clear the styles module. I don't have time to work on that plugin right now but I'd ask you t...

GJSBlockMay 17, 2026

Thanks for reporting this, @SintoDema. The issue with Issue on Style Import appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and DOM modifications overlap, creating an inconsistent state. What to try: Add a setTimeout wrapper...

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 →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.