Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

slate-no-empty

GitbookIO17Apache-2.00.1.0

A Slate plugin to prevent empty document.

slate

readme

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