Slate plugin to ensure a trailing block.
npm install slate-trailing-block
import TrailingBlock from 'slate-trailing-block'
const plugins = [
TrailingBlock({ type: 'paragraph' })
]
This plugin accepts options to redefine the following block types:
[type: String]
— type for the trailing block
slate-trailing-block
exports utilities and changes:
plugin.changes.focusAtEnd(change: Change) => Change
Focus at the end of the last block.