Issue #3091✓ SolvedOpened October 24, 2020by NeekoGta4 reactions

How to use grapesjs with static HTML

Quick answerby artf2

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.

grapesjs-question

I went through the documentation to try to find answers and did several tests without actually achieving this.

Thank you !

Answers (3)

👍 Most helpfulartfJuly 15, 2022

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/

NeekoGtaJuly 5, 2022

@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.

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 →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.