Skip to content

Commit

Permalink
Up
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed May 10, 2023
1 parent ca9c664 commit 0b914e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/modules/Pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Pages

# Pages

The Pages module in GrapesJS allows you to leverage the built-in support for creating a project with multiple pages and one page is always created under the hood, even if you don't need multi-page support. This allows to keep the API consistent and easier to extend in case you need to add multiple pages later.
The Pages module in GrapesJS allows you to create a project with multiple pages. By default, one page is always created under the hood, even if you don't need multi-page support. This allows keeping the API consistent and easier to extend if you need to add multiple pages later.

::: warning
This guide is referring to GrapesJS v0.21.1 or higher
Expand All @@ -16,7 +16,7 @@ This guide is referring to GrapesJS v0.21.1 or higher

The default editor initialization doesn't require any knowledge of pages and this was mainly done to avoid introducing breaking changes when the Pages module was introduced.

This is how a typical editor initialization looks like
This is how a typical editor initialization looks like:

```js
const editor = grapesjs.init({
Expand Down Expand Up @@ -57,7 +57,7 @@ const editor = grapesjs.init({
Worth noting the previous keys are `style` and `components`, where in pages you should use `styles` and `component`.
:::

As you might guess, this is how initializing the editor with multiple pages would look like
As you might guess, this is how initializing the editor with multiple pages would look like:

```js
const editor = grapesjs.init({
Expand Down Expand Up @@ -89,7 +89,7 @@ GrapesJS doesn't provide any default UI for the Page Manager but you can easily

If you need to manage pages programmatically you can use its [APIs][Pages API].

Below an example of commonly used methods.
Below are some commonly used methods:
```js
// Get the Pages module first
const pages = editor.Pages;
Expand Down

0 comments on commit 0b914e3

Please sign in to comment.