How to use grapesjs with static HTML
There are different ways to achieve the same desired result, so I'd recommend checking these examples: Identify the editable component and ignore everything else https://jsfiddle.net/arturarseniev/aku70f5w/ Identify placeholder components and ignore them https://jsfiddle.net/arturarseniev/w6mvq4bx/
Read full answer below ↓Question
Sorry in advance for my English.
I'm developing a CMS using Laravel and Vue.js.
I want to use grapesjs for editing page content but with static HTML elements (like navbar, footer ...). Here is a simple image of what I would like to have.

I went through the documentation to try to find answers and did several tests without actually achieving this.
Thank you !
Answers (3)
There are different ways to achieve the same desired result, so I'd recommend checking these examples: Identify the editable component and ignore everything else https://jsfiddle.net/arturarseniev/aku70f5w/ Identify placeholder components and ignore them https://jsfiddle.net/arturarseniev/w6mvq4bx/
I found a solution by combining fromElement: true and this : https://github.com/artf/grapesjs/issues/336#issuecomment-332205060
But I have to use type: 'local' and can't use urlStore and urlLoad anymore.
I have to implement myself the save / load.
@akkivaghasiya5 2 years ago yes 😆 But trying again today, it doesn't seem to work.
fromElement seems deprecated now.
@artf It's possible to you to provide example how we can achieve this?
Thanks!
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2651
[QUESTION] Background image via inline style not accessible?
This is very simple, but i can not access the background image set via CSS, within my custom block 'content'. How do i change the backgroun...
Issue #4448
Error on resize image.
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Brave Browser Last version Reproducible de...
Issue #3422
How we can remove default text content from text component 'Insert your text here' ?
I want to remove default text from text component just like placeholder. every time when we drag text component we need to remove default t...
Issue #3328
How can I update the nodeValue (text value) of components by inputs forms
Hello. Grapesjs is a great tool. Thanks for it. I want to update the text value of a component by inputs, how can I do that?? if a user fil...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →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.