Issue #2462💬 AnsweredOpened December 20, 2019by hellocaio0 reactions

Is it possible to save header, footer and body separately for multiple pages?

快速解答by hellocaio

This is what I am thinking: const html = $(editor.getHtml()); const header = html.find("header").html(); const footer = html.find("footer").html(); But I don't like the fact that I am using jQuery :/.... any work around this?

Read full answer below ↓

Question

Hi,

I am trying to implement multiple pages. With multiple pages, I would like to share the header and footer among all pages to keep consistency, so I think the approach is to save them separately. Is this possible? Any advice?

Answers (2)

hellocaioDecember 21, 2019

This is what I am thinking:

const html = $(editor.getHtml());
const header = html.find("header").html();
const footer = html.find("footer").html();

But I don't like the fact that I am using jQuery :/.... any work around this?

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.