Issue #5570πŸ’¬ AnsweredOpened December 20, 2023by prateekkumar-ec0 reactions

Import button is removing all styling from all pages.

Quick answerby afrinxnahar

It would be great if you could kindly attach a video. Not sure about the empty pop-up thing

Read full answer below ↓

Question

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Latest Version Reproducible demo link N/A( I can share video if required for further conversation) Describe the bug How to reproduce the bug?Suppose you have some content on your current page with some styles over that.Now create one new page in the same project.Click on the import button on the editor's header leave the pop-up empty and hit the import button of pop-up window.Now go and check the first page. It will lose all of its CSS. What is the expected behavior? The first page should r...

Answers (3)

afrinxnaharβ€’ February 12, 2024

It would be great if you could kindly attach a video. Not sure about the empty pop-up thing

artfβ€’ February 12, 2024

@prateekkumar-ec this is not core related issue.

GJS Helperβ€’ May 17, 2026

This is a known issue related to how the GrapesJS core:import-code command handles empty CSS input, especially in multi-page setups. When the import button is clicked and the CSS input field in the popup is left empty, the command internally executes editor.setStyle(''). This action clears all CSS...

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.