An open API service indexing awesome lists of open source software.

https://github.com/gitbookio/slate-no-empty

Slate plugin to prevent the document from being empty
https://github.com/gitbookio/slate-no-empty

Last synced: 9 months ago
JSON representation

Slate plugin to prevent the document from being empty

Awesome Lists containing this project

README

          

# slate-no-empty

[![NPM version](https://badge.fury.io/js/slate-no-empty.svg)](http://badge.fury.io/js/slate-no-empty)
[![Linux Build Status](https://travis-ci.org/GitbookIO/slate-no-empty.png?branch=master)](https://travis-ci.org/GitbookIO/slate-no-empty)

A Slate plugin to prevent the document from being empty.

### Install

```
npm install slate-no-empty --save
```

### Usage

```js
import NoEmpty from 'slate-no-empty'

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