@manuscripts/plugin-persist
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

@manuscripts/plugin-persist

This repo provides a plugin that automatically adds ID attributes to Nodes that need them, to facilitate persistent storage in Pouch/Couchbase.

Usage

Install:

npm i @manuscripts/plugin-persist

Add to Editor on setup

import persist from @manuscripts/plugin-persist

EditorState.create({
  doc,
  schema,
  plugins: [persist()],
})

Development

git clone git@gitlab.com:mpapp-public/manuscripts-plugin-persist.git
cd manuscripts-plugin-persist
npm i
npm run typecheck
npm run lint
npm run build

Readme

Keywords

none

Package Sidebar

Install

npm i @manuscripts/plugin-persist

Weekly Downloads

0

Version

0.1.2

License

Apache-2.0

Unpacked Size

12.7 kB

Total Files

11

Last publish

Collaborators

  • maci