# keystonejs-grapesjs-editor

> KeystoneJS webpage editor powered by grapesjs and react-codemirror2

Latest version **1.0.10** (published 2020-10-14) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install keystonejs-grapesjs-editor
pnpm add keystonejs-grapesjs-editor
yarn add keystonejs-grapesjs-editor
bun add keystonejs-grapesjs-editor
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.10 |
| Published | 2020-10-14 |
| First published | 2020-09-24 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 450.3 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Akeo Tech |
| Maintainers | ashish-akeo, agupta87, jitendra_dev |
| Keywords | KeystoneJS, Editor, Webpage, GrapesJS, CMS |

## Links

- npm: https://www.npmjs.com/package/keystonejs-grapesjs-editor
- Repository: https://github.com/akeotech/keystonejs-grapesjs-editor
- Homepage: https://github.com/akeotech/keystonejs-grapesjs-editor#readme
- Issues: https://github.com/akeotech/keystonejs-grapesjs-editor/issues
- npm.io page: https://npm.io/package/keystonejs-grapesjs-editor

## Dependencies (10)

- [uuid](https://npm.io/package/uuid.md) ^8.3.0
- [react](https://npm.io/package/react.md) ^16.13.1
- [grapesjs](https://npm.io/package/grapesjs.md) ^0.16.22
- [js-beautify](https://npm.io/package/js-beautify.md) ^1.13.0
- [grapesjs-react](https://npm.io/package/grapesjs-react.md) ^3.1.1
- [@arch-ui/fields](https://npm.io/package/@arch-ui/fields.md) ^3.0.5
- [react-codemirror2](https://npm.io/package/react-codemirror2.md) ^7.2.1
- [@keystonejs/fields](https://npm.io/package/@keystonejs/fields.md) ^18.0.0
- [grapesjs-preset-webpage](https://npm.io/package/grapesjs-preset-webpage.md) ^0.1.11
- [@babel/plugin-proposal-class-properties](https://npm.io/package/@babel/plugin-proposal-class-properties.md) ^7.10.4

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 1.0.10 (latest) — 2020-10-14
- 1.0.9 — 2020-10-07
- 1.0.8 — 2020-10-07
- 1.0.7 — 2020-09-25
- 1.0.6 — 2020-09-25
- 1.0.5 — 2020-09-24
- 1.0.4 — 2020-09-24
- 1.0.3 — 2020-09-24
- 1.0.2 — 2020-09-24
- 1.0.1 — 2020-09-24
- 1.0.0 — 2020-09-24

## README

# GrapesJS

This field inserts a json object into your schema based on the `Text` field type implementation, and provides Webpage(html and css) editor in the Admin UI using [GrapesJS](https://grapesjs.com/) and React-Codemirror2 (https://github.com/scniro/react-codemirror2)

## Usage

This package isn't included with the keystone fields package and needs to be installed with `yarn add keystonejs-grapesjs-editor` or `npm install keystonejs-grapesjs-editor`

Then import it, and use it like any other field:

```js
const GrapesJSEditor = require('keystonejs-grapesjs-editor');

... 

fields: {
    content: {
        type: GrapesJSEditor, adminConfig: {
            "filePath": "uploads", // Public path for uploaded files(media) to be accessed by editor
            "css": [ // List of css files which need to be loaded on editor to show pages compatible with other pages
                '/css/bootstrap.min.css',
                '/css/style.css',
            "staticFolderUrl": "/uploads/", // Static path for uploaded files(media) to be accessed by editor
            "apiUrl": "/media" // API url to upload media files by editor asset manager
        }
    },
}

```

Here is demo after integration

![KeystoneJS GrapesJS Editor](/static/keystonejs-grapesjs-integration.gif)

---
_Source: https://npm.io/package/keystonejs-grapesjs-editor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
