slate-soft-break

A Slate plugin to add soft breaks on return.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
slate-soft-break
0.9.04 years ago6 years agoMinified + gzip package size for slate-soft-break in KB

Readme

slate-soft-break

A Slate plugin to add soft breaks on enter.
View Demo ⬈
import SoftBreak from 'slate-soft-break'
import { Editor } from 'slate-react'

const plugins = [
  SoftBreak()
]

<Editor
  ...
  plugins={plugins}
/>

| Option | Type | Description | | ----------- | --------- | ------------------------------------------------------- | | shift | Boolean | Require the shift key to be pressed as well. |