slate-no-empty

0.1.0 • Public • Published

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 }))
]

Readme

Keywords

Package Sidebar

Install

npm i slate-no-empty

Weekly Downloads

21

Version

0.1.0

License

Apache-2.0

Last publish

Collaborators

  • samypesse