[QUESTION] How to use grapesjs with static HTML
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/artur_arseniev/aku70f5w/
Identify placeholder components and ignore them https://jsfiddle.net/artur_arseniev/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 #794
[QUESTION] How to create a custom option in toolbox?
I would like to know how can I create a custom "option" with custom content in this place:
Issue #3279
QUESTION: how to make textnode editing update component content?
I'm building a custom textarea component and want it to behave like the built in text component such that editing the textnode on the grape...
Issue #3019
[QUESTION] - Bind inner text/html (like div, p, h1) to Trait
Hi! I've created a custom trait, and I want to be allowed to change the content of the tags (in this case it's a H1 tag) based on the trait...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.