Issue #4855๐Ÿ’ฌ AnsweredOpened Jan 19, 2023by ronaldohoch1 reactions

Outline disappears after applying loadProjectData

Quick answerby allenhwkimโค 1

@ronaldohoch with Edge browser, it works with the command you provided. let projectData = editor.getProjectData(); editor.DomComponents.clear(); editor.loadProjectData(projectData); I don't think GrapesJS support Brave browser, which is not listed in https://github.com/browserslist/caniuse-lite. <img width="1435" alt=...

Read full answer below โ†“

Question

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Brave last version Reproducible demo link https://grapesjs.com/demo Describe the bug How to reproduce the bug?Open the demo pageOpen the developer toolsRun: let projectData = editor.getProjectData()Run: editor.DomComponents.clear()Run: editor.loadProjectData(projectData); What is the expected behavior? The outline of component should be shown. What is the current behavior? The outline of component is not showing after apply the project.Code of Conduct [X] I agree to follow this project's Code of C...

Answers (4)

allenhwkimโ€ข Jan 20, 2023

@ronaldohoch with Edge browser, it works with the command you provided. let projectData = editor.getProjectData(); editor.DomComponents.clear(); editor.loadProjectData(projectData); I don't think GrapesJS support Brave browser, which is not listed in https://github.com/browserslist/caniuse-lite. <i...

ronaldohochโ€ข Jan 19, 2023

I also run the command editor.runCommand("core:component-outline") and it didn't shows again, i needed to click on the button twice to make it appear

ronaldohochโ€ข Jan 20, 2023

Hi @allenhwkim, thanks for the comment. But embarrassing I didn't test it in other browsers. I believe my customers don't use Brave, so I'm going to drop that part. However, doing all these tests, I managed to make it work the way I want, applying this code: Maybe i was looking the wrong command to...

GJSBlockโ€ข May 17, 2026

Thanks for reporting this, @ronaldohoch. Great question about Outline disappears after applying loadProjectData. The recommended approach with Components is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module Look for the on() event listener method Mos...

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.