Skip to content

GitbookIO/slate-no-empty

Repository files navigation

slate-no-empty

NPM version Linux Build Status

A Slate plugin to prevent the document from being empty.

Install

npm install slate-no-empty --save

Usage

import NoEmpty from 'slate-no-empty'

const plugins = [
  NoEmpty('paragraph')
  // or NoEmpty(Block.create({ type: 'image', isVoid: true }))
]

About

Slate plugin to prevent the document from being empty

Resources

License

Stars

Watchers

Forks

Packages

No packages published