# slate-trailing-block

> Slate plugin to ensure a trailing block.

Latest version **0.5.0** (published 2018-03-25) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install slate-trailing-block
pnpm add slate-trailing-block
yarn add slate-trailing-block
bun add slate-trailing-block
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.0 |
| Published | 2018-03-25 |
| First published | 2016-09-19 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 103.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Maintainers | aarono, gitbook-bot, jpreynat, samypesse, soreine, zhouzi |
| Keywords | slate |

## Links

- npm: https://www.npmjs.com/package/slate-trailing-block
- Repository: https://github.com/GitbookIO/slate-trailing-block
- Homepage: https://github.com/GitbookIO/slate-trailing-block#readme
- Issues: https://github.com/GitbookIO/slate-trailing-block/issues
- npm.io page: https://npm.io/package/slate-trailing-block

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 0.5.0 (latest) — 2018-03-25
- 0.4.0 — 2017-11-08
- 0.3.0 — 2017-11-08
- 0.2.4 — 2016-11-30
- 0.2.3 — 2016-11-03
- 0.2.2 — 2016-09-30
- 0.2.1 — 2016-09-19
- 0.2.0 — 2016-09-19
- 0.1.0 — 2016-09-19

## README

# slate-trailing-block

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

Slate plugin to ensure a trailing block.

### Install

```
npm install slate-trailing-block
```

### Simple Usage

```js
import TrailingBlock from 'slate-trailing-block'

const plugins = [
  TrailingBlock({ type: 'paragraph' })
]
```

#### Arguments

This plugin accepts options to redefine the following block types:

- ``[type: String]`` — type for the trailing block

### Utilities

`slate-trailing-block` exports utilities and changes:

#### `changes.focusAtEnd`

`plugin.changes.focusAtEnd(change: Change) => Change`

Focus at the end of the last block.

---
_Source: https://npm.io/package/slate-trailing-block · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
